LinkedIn

Thursday, 12 September 2013

Stop resharper adding a dll reference from a randon project and make it update from Nuget

Hi,

We have been having issues where a developer (ME) uses Resharper to add a reference. The issue is, it doesnt look at nuget and update your packages file it just adds the nearest dll it can find (from a neighbouring project).

This is not good.

Anyway, I just found and installed this plugin from Resharper:
(1). https://github.com/JetBrains/resharper-nuget/wiki/Release-Notes

Here is a good post on it:
(2). http://blogs.jetbrains.com/dotnet/2012/11/add-packages-not-references-a-nuget-plugin-for-resharper/

You just download the zip file:
http://download.jetbrains.com/resharper/plugins/resharper-nuget.1.2.zip
(make sure you check for the latest verion on the site above (1))

Then you just run the batch file that matches your version:









Then when you add a reference:












It updates from nuget:












This is awesome!

Russ