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

Why is my project still trying to access a NuGet package from the GAC after I removed all references to it?

$
0
0

In short, when rebuilding my solution, the compiler is trying to find a NuGet package I no long want to use. How can I get my solution built and running again?

I'm using Visual Studio 2017 with a .Net C# WinForms app. I had an issue where the solution was trying to get an older version of a reference from the GAC instead of from the newer version installed from NuGet. I wanted to fix this by removing all references to this package from my solution. I uninstalled it using the NuGet package manager and I cleared it from the csproj file, the package.cs file, the app.config file and anywhere else I could find it. I deleted all the bin and obj folders. I don't see this package referenced in the References section of the project. Yet for some reason, when I rebuild the solution, I get an error saying that it can't find the reference in the GAC. Why is it still trying to find this package that isn't referenced anywhere? How can I stop the compiler from trying to look for this package?

enter image description here


Viewing all articles
Browse latest Browse all 3067

Trending Articles



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