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

How do I remove a nuget package from multiple solutions/projects?

$
0
0

We have a few hundred Visual Studio solutions of varying ages and we have an internally written NuGet package that many of them consume. We want to eliminate this NuGet package and remove it from these solutions and their projects (no more reference in csproj or packages.config).

Through a script, I can create a branch for each and do a pull request when the package removal is done. As those PRs are approved, the builds/deploy will happen in an automated fashion. So, the only manual part seems to be this package uninstall.

These are framework apps and the dotnet remove command won't work on these. The nuget.exe only seems to allow delete from feeds, not solutions/projects. I'm still looking, but haven't found other options.

I'd rather not have to open every one of these solutions in VS to remove this package. Can this be scripted in powershell or c# easily?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



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