Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Update all Nuget Packages to latest version compatible with specific dotnet version

$
0
0

Currently I have a project consisting of numerous dotnet 3.1 applications / libraries, and we are in the process of upgrading them to dotnet 6 (latest dotnet version with LTS)

Upgrading to dotnet 7 is out of the question and not up to me, I am strictly instructed to upgrade to explicitly dotnet 6.

Unfortunately, simply just opening the Updates pane for nuget in Visual Studio and selecting "Select all packages" and hitting update will default to trying to attempt to update them to the dotnet 7 compatible packages, which then of course fails as the application is using dotnet 6.

Is there any easy method to filter down available packages to only dotnet 6 compatible ones, and then updating to the latest of that subset?

This project is quite large and has countless packages in use so, manually going through each of them one by one to handpick the latest compatible version would take a very long time, so if there's a way anyone knows to do this automatically that would be very much appreciated!


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>