I have a problem with assembly caching in visual studio. I want to alter the references I have with strongly names assemblies. So I signed the assemblies and they were signed successfully, but when I try to reference them in visual studio it seems that it still caches the old version! I can not find a way to delete the old ones, I even changed the version and VS is still unable to detect the new ones.
any ideas?
Thanks
I think this is the same problem I was having. My solution is the following, which seems to work reliably (for me anyway, in Visual Studio 2015):
Et voila! your assembly references for all your projects should now point to the right assembly files. At least they should if your problem was similar to mine.
In my case, assemblies were referenced via a $(PathToAssembly) MSBuild property, set in an MSBuild targets file included from my project file. When the value of the PathToAssembly property changed, the references were not updating, due to some internal cache in Visual Studio. The above incantation correctly updates the references.
Check the properties of an added reference.
The Path property allows to find out where the old assembly is located and delete it. Please also pay attention to Copy Local property value. If it is false then the old assembly is resided at GAC and you should uninstall it from there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With