-
Notifications
You must be signed in to change notification settings - Fork 258
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
Is there a way to manage allowedVersions across all projects in a solution? #7181
Comments
@jainaashish and @anangaur Have been discussing something related. Guys do you have any docs for @StingyJack ? |
It is two step process: (i) abstract versions as global properties in msbuild, (ii) declare versions capped to highest one you want to use. Warning: this will not prevent NuGet from restoring whatever it wants from dependency graph. (i) use (ii) Declare package version in the form capped from top limiting version range as desired. NuGet version ranges docs
|
We are looking at ways to improve the central package version management for NuGet but this is still in incubation phase and not committed yet. You can find more details on the issue: #6764 |
@4creators - thanks but we are not able to move to package reference until at least the first three of these are resolved, as well as the warning you noted. Most of the software I write/maintain is for the heavily regulated pharmaceutical packaging industry. I can't be fooling with (nor would I want to) random restores or tools that decide to change the version numbers of components. @anangaur that's fine. I'll just have to keep writing more powershell scripts to manage projects and dependencies. |
have you looked at https://github.com/Microsoft/MSBuildSdks/tree/master/src/CentralPackageVersions for managing nuget package versions centrally? |
@japj - thanks for the heads up but that requires package reference. |
I want to limit a set of packages to stay below a specific version number for every project in a solution. Is there a way to do that (EDIT: without having to manage this at each individual projects)?
The text was updated successfully, but these errors were encountered: