-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pack should re-evaluate project versions to allow git versioning #4790
Comments
This isn't something I can fix from Nerdbank.GitVersioning side because package imports are skipped when So I'm reactivating this issue as a DCR for how or when P2P versions are established for purposes of inter-package dependencies. |
What if you set |
@onovotny that may work as a workaround. I document another workaround on the NB.GV side that doesn't require the user to add this switch each time as well, but it's kinda ugly internally. |
But any workaround aside, this also means that when a commit is made, the next build will be broken because the package versions across P2Ps are locked in at restore time instead of at build time. IMO that's the fundamental issue here. |
@AArnott is there a link to the docs with the workaround? I just need to get Rx.net working right now... :/ |
Ping @unniravindranathan @rrelyea @morrisjoe |
I'd like to add my vote for this being an important scenario that needs to be supported without weird workarounds that function to various degrees. It's a bit discouraging to see there's no one assigned and no milestone yet, which gives the impression that this is being ignored! |
+1 Restoring with imported projects is dangerous as @emgarten mentioned in dotnet/msbuild#2080 because the 2nd restore may be affected by the first. Versions of project references should be able to flow to consuming projects on build/pack time. |
+1 Probably worthwhile adding a mention of this process on the docs site |
All of you who are +1'ing this issue, I suggest you give a thumbs up to the issue itself so it's easier to track voting. |
Thanks for the votes. Won't make 4.3 (VS 15.3) -- but will consider in future. |
Bump? How is this looking for 4.4? Would be really nice to get rid of a hack that requires additional imports due to |
Using this issue to track all pack version/git versioning issues. The current plan for this is to re-evaluate the project version at pack time. This will allow packages to modify the version used, and the version will not longer need to be set at restore time. |
This issue is biting my team as well... I hope a fix will make it in a next version of NuGet |
UPDATE : i will begin working on this in a week's time. |
@rohit21agrawal this may be related on a similar fix. The issue is that the pack targets are reading PackageReference info from the lock file instead of as msbuild items: |
FYI this fix is going to be release in Update 6 of Visual Studio aka 15.6 |
* Added workaround for NuGet/Home#4790 * Modified the test solution so that build order is not alphabetic
I'm hitting this on build servers now as well - which version of the SDK should we see it resolved in? |
Repro steps
{ "version": "0.1-beta" }
Expected
The B nuget package references A package by its version (e.g.
0.1.2-beta
)Actual
The B nuget package references A package by a non-existent version
1.0.0
d15rtwsvc 26228.4
The text was updated successfully, but these errors were encountered: