-
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
Suspend 1605/1608 during package update sequence? #7474
Comments
Did you check in the project properties? May be it's set implicitly by project system... This is the only option to make sure this warning is not elevated as Error in order to succeed. Also, it was wise to open this issue at https://github.com/Microsoft/ApplicationInsights-Home/issues/280 and I'd recommend to follow it up there to let them relax their dependencies constraint. |
@jainaashish I raised both as although it should be solvable by changing the 1605/1608 warnings I wanted to raise the issue that nuget itself should allow an override. Otherwise we can get into a situation where to solve the issue I have to manually modify a large number of project files - I might want to keep the overall constraints but allow it to upgrade in this particular instance. This makes it less useful as a package manager and makes automation very difficult, whereas with a per-command override it would allow for the update - if the resulting configuration is broken, that's my problem but the tool should do what I tell it to do. |
Alternatively you can also use IMHO I dont think we'd be able to get to this requirement of adding new option to PMC command to allow skipping specific warning codes in near future given our backlog. But if you want I'm happy to keep this open for tracking. |
Hey @phatcher Thanks for filing this issue. Unfortunately at this point, I don't think it's feasible to suspend the NU1605 and NU1608 warnings. When a package version is changed NuGet verifies that the complete package graph is still valid and to do that NuGet needs restore to succeed. If Nuget persists data that leads to invalid restore, NuGet will not be able to make subsequent compat checks correctly. Given that NU1605 and NU1608 can already be suppresed from the commandline, I'd recommend you use that. This is not to say we don't want to improve this experience, we are gonna focus on #6010 soon and that should some of the issues you were running into easier to fix. |
Details about Problem
NuGet product used: Package Manager Console
NuGet version: 4.6.2.5055
VS version (if appropriate): VS 2017 15.8.8
OS version: win10 v1803
I'm trying to update the version of Application Insights in an ASP.NET MVC project, however there are multiple packages and the version coupling is very tight i.e. components want associated components with the same exact version.
I need to update the packages using a command so I can integrate this into our DevOps process but the updates are blocked by NU1605/NU1608 warnings
I've checked and the projects do not have NU1605 as an error but the package manager console refuses to update the packages.
My question is how to issue commands that will update these packages, couple of choices...
The UI mode works correctly
Verbose Logs
Issuing
update-package Microsoft.ApplicationInsights.Web
(the suggested package in the documentation) getsThe text was updated successfully, but these errors were encountered: