-
Notifications
You must be signed in to change notification settings - Fork 255
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
Update cli doesn't work on .net standard/core csproj #4945
Comments
I know it's not clearly stated, but with blog posts like NuGet is now fully integrated into MSBuild you're suggesting that it would do exactly that - working fully. That's why it's very disappointing to find out that an essential command like update doesn't work. |
Run into the same problem, seems there is no way to update core projects with latest packages outside visual studio, kinda blocker for us. |
We're using this to automate testing of newly created packages (after pushing to an internal feed). Works perfectly for Framework projects, broken as described above for .NET Core. Really disappointing to not even see a response on this since March. |
Use Related: #4103 |
is there any update on this :( dotnet add will not work in this case. it will just add new package to every project |
Details about Problem
NuGet.exe 4.0.0.2283
Detailed repro steps so we can see the same problem
Expected: PackageReference updated to the lastest
Actual: Unable to update. The project does not contain a packages.config file.
.net standard/core projects don't have packages.config, This is all now in the csproj file.
VerboseLogs:
NuGet Version: 4.0.0.2283
MSBuild auto-detection: using msbuild version '15.1.548.43366' from 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\bin'. Use option -MSBuildVersion to force nuget to use a specific version of MSBuild.
Looking for installed packages in '..\packages'.
System.AggregateException: One or more errors occurred. ---> NuGet.CommandLine.CommandLineException: Unable to update. The project does not contain a packages.config file.
at NuGet.CommandLine.UpdateCommand.d__50.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.CommandLine.UpdateCommand.d__43.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at NuGet.CommandLine.Command.Execute()
at NuGet.CommandLine.Program.MainCore(String workingDirectory, String[] args)
---> (Inner Exception #0) NuGet.CommandLine.CommandLineException: Unable to update. The project does not contain a packages.config file.
at NuGet.CommandLine.UpdateCommand.d__50.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.CommandLine.UpdateCommand.d__43.MoveNext()<---
The text was updated successfully, but these errors were encountered: