-
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
Enable updating packagereference versions from the command line (for csproj) #4358
Comments
@brgrz 4.0.0 will support PackageReferences. Try https://dist.nuget.org/win-x86-commandline/v4.0.0-rc3/NuGet.exe |
What's the correct way to use this? I tried and got this: PS C:\Users\brgrz\Documents\testApp> .\nuget update testapp.csproj |
This raises an interesting question .... what if |
My setup here is a new .NET Core RC4 (latest bits from CLI's GitHub) project and I have the nuget (3.5.0) in my path but I copied the Nuget.exe @emgarten linked to the root of my app and it picks up the right one when I run .\nuget update testapp.csproj: PS C:\Users\brgrz\Documents\testApp> .\nuget oh and btw I do not have VS 2017 RC installed here |
You can specify
There is no PackageReference replacement for |
I don't know which MSBuild I have installed. As said, I only installed the .NET Core SDK and VS Code.
I don't quite understand what you're saying. How do I actually solve the issue I'm having by using the |
Would you provide more details on the issue you are having and what you expect? |
My issue is simple, really. Discover new updates for packages referenced through PackageReferences, update them (cherry picking would be nice but at this time it is not mandatory) and then update the PackageReferences to reflect the changes. VS Code/nuget.exe/CLI only. |
We're also hoping to see this. Floating versions do not work for us, as we want reproducible builds, no matter what package version updates have happened since the last build. We've ended up writing a tool that parses csproj files, looks for PackageReference, queries our nuget server, and updates the versions. We'd love to throw this away. |
@stevenscreek We're in the same boat. Is your tool on GitHub by any chance? Was about to roll my own when I came across your post |
@steve-torchia Unfortunately, it's not (and there's not much I can do to make that change). |
So weird that this functionality isn't available in VS Code. Are we supposed to track and update each package reference in .csproj manually? |
I slapped this together over the weekend, because doing updates with Visual Studio 2017 is agony (takes 10 minutes just to calculate the updates, 20 mins to execute them, and then half the time doesn't properly update everything). https://gist.github.com/jahmai/6868dbaeb9032eabb1cd0c6b6a2088e8 Disclaimer: Works for me, might not work for you. |
Hi All, are there any news or expectations on this feature? |
close as dupe of #4103 |
@jahmai nice, but what about on your gist on allowing updates for imported props that contains |
Currently the .NET Core CLI does not support automatic package updates to the the new .NET Core .csproj format (reading the file, updating the packages and updating the references within the file) as per
https://github.com/dotnet/cli/issues/5425 (that is using
dotnet restore
or any other command/means)Is there a plan for nuget.exe to support the missing functionality like it does for the old (Visual Studio) .csproj?
The text was updated successfully, but these errors were encountered: