Repository navigation
Fix Version number Bugs in Net Core Template - #89
Conversation
|
|
||
| <!-- Returns the current build version. Used in .vsixmanifests to substitute our build version into them --> | ||
| <Target Name="GetBuildVersion" Outputs="$(Version)" /> | ||
| <Target Name="GetBuildVersion" Outputs="$(VersionPrefix)" /> |
There was a problem hiding this comment.
Don't we want our daily build number included in the .vsix? That way we can tell which actual build we have? Using just $(VersionPrefix), we will always get "1.0.0". A user/tester won't be able to tell which actual version they are using.
There was a problem hiding this comment.
Only slightly related: I'm actually concerned about
There was a problem hiding this comment.
I'm going to make a slight change where we only set
There was a problem hiding this comment.
The intention with VersionSuffix was to provide a way for users to have an easy way to increment their version between builds in a similar way to how they did it in the cli.
There was no intention of a requirement that VersionPrefix always be 1.0.0 in fact in many cases I'd expect it to be something like 1.0.0-beta and VersionSuffix being only a number that increments.
The only concern I have with having VersionSuffix computed from Version is that then the user needs to go and implement the logic to increment the build number. While it would be admittedly simple, why not provide an easier experience? There may be reasons, I am just trying to show my reasoning for the current case.
There was a problem hiding this comment.
So, right now. If you have say <Version>4.5.6-beta</Version>, <VersionPrefix> is defaulted 1.0.0. This can lead to bugs if we start using VersionPrefix elsewhere in targets.
We can continue to support specifying a prefix and a suffix as we do today, but we should leave VersionPrefix unset if it didn't come from the user..
There was a problem hiding this comment.
A things we make sure everyone is clear on here: @natidea is editing our own build system in this change. This change isn't for customers' projects.
If we want to discuss the usage of
There was a problem hiding this comment.
My bad for discussing this inline. I was aware and did that anyway. Sorry. I am going to file a bug.
There was a problem hiding this comment.
Thanks! I don't want to stiffle the conversation, and I think the discussion needs to happen. It just should be more "official", and not be confused with @natidea's change.
There was a problem hiding this comment.
I'm going to guess a valid format for vsix is just n.n.n.n. I've tracked down the setup in roslyn-project-system. Their build numbers are formatted differently $(date:yyyyMMdd)$(rev:.r) versus $(date:yyyyMMdd)$(rev:-r) in our build. But even that wouldn't be valid because it would add a fifth number. The version parsing does $(BuildNumber.Split('.')[0]) to extract just the first part which means you don't get different build versions for two builds on the same day. I'll just concatenate to make the version number unique.
In reply to: 76150160 [](ancestors = 76150160)
|
👍 |
|
|
Fix Version number Bugs in Net Core Template
Fixes #64
project.json.templatebefore it is zipped into the VSIX./cc @srivatsn @eerhardt @dotnet/project-system