GithubHelp home page GithubHelp logo

Comments (13)

andreasohlund avatar andreasohlund commented on July 21, 2024

Since we use ripple we lean on the update dependencies feature of create-packages

http://darthfubumvc.github.io/ripple/commands/createpackages/

It works brilliantly for us

from gitversion.

thirkcircus avatar thirkcircus commented on July 21, 2024

ah, right.
started a spike ealier this week for ripple-ising our main solution here, another good reason to use it... 😉
thanks, makes sense.

from gitversion.

JakeGinnivan avatar JakeGinnivan commented on July 21, 2024

From the looks of it, this issue can be closed.

Reopen or post a comment if this is not the case

from gitversion.

pms1969 avatar pms1969 commented on July 21, 2024

Just for future reference, if you add an AssemblyInformationalVersion to your projects AssemblyInfo.cs, your package versions should be correct when doing nuget pack. (just had this exact same problem and eventually found the AssemblyInformationalVersion)

from gitversion.

MarkZuber avatar MarkZuber commented on July 21, 2024

This problem still exists. AssemblyInformationalVersion needs to be set to NuGetVersion (e.g. 1.2.3-unstable0004) instead of the longer version with the SHA in it. Otherwise, NuGet doesn't set the dependency properly in the creation (as described in the original post).

Really need to be able to specify/override what goes into AssemblyInformationalVersion so that we can make this work.

from gitversion.

MarkZuber avatar MarkZuber commented on July 21, 2024

From nuget docs (https://docs.nuget.org/create/versioning)

If building a package from a project (.csproj or .vbproj), use the AssemblyInformationalVersionAttribute to specify the version.

[assembly: AssemblyInformationalVersion("1.0.1-alpha")]

NuGet will pick up this value instead of the one specified in the AssemblyVersion attribute (this attribute does not support SemVer which is why a different attribute was needed).

from gitversion.

JakeGinnivan avatar JakeGinnivan commented on July 21, 2024

Makes sense, thanks for clarifying.

from gitversion.

MarkZuber avatar MarkZuber commented on July 21, 2024

Happy to guinea pig a fix to this. I've been digging through the code, but not sure the best way to wire this in. Maybe something in the yaml config? or a command line parameter?

from gitversion.

JakeGinnivan avatar JakeGinnivan commented on July 21, 2024

Seeing as it is solution specific I think the yml file is a better idea. Not sure the best approach. Maybe some sort of string interpolation which you can use variables gitversion generates. I thought we had something in there but don't have time to look into it right now

from gitversion.

MarkZuber avatar MarkZuber commented on July 21, 2024

I was thinking something similar to how it's wired up for the assembly version property where you can specify in the yml: Major, MajorMinor, MajorMinorPatch, etc. Have a similar config property for assemblyfileversioninfo-format whre you can say "gitversion" or "fullinfoversion" or something like that...

from gitversion.

MarkZuber avatar MarkZuber commented on July 21, 2024

I just sent a Pull Request for this to GitTools/Master with some additional unit tests. would be interested for you to take a look at the approach when you get time.

#658

thanks!
mark

from gitversion.

JakeGinnivan avatar JakeGinnivan commented on July 21, 2024

This is fixed by #660 right?

Am closing this, if thats not the case then let me know @MarkZuber

from gitversion.

MarkZuber avatar MarkZuber commented on July 21, 2024

Yes. It's fixed by that cl. Thanks!

Sent from the internets.

On Jan 19, 2016, at 1:46 AM, Jake Ginnivan [email protected] wrote:

This is fixed by #660 right?

Am closing this, if thats not the case then let me know @MarkZuber


Reply to this email directly or view it on GitHub.

from gitversion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.