Reputation: 5211
I'm using Visual Studio 2012. In most solutions I have lots of projects which reference each other.
It's quite time consuming to always add the reference manually.
Is there a simple way (either built-in or via extension) to include a missing reference to an assembly in the own solution similar to the way missing using
s are resolved?
Upvotes: 10
Views: 545
Reputation: 5211
This extension at least offers a way to add references to GAC assemblies
But it requires CodeRush and so also isn't a free choice.
Upvotes: 0
Reputation: 3139
As mentioned before, resharper will be a good solution for your request. but if you are looking for a free visual studio extension that does the same you can use 'WoVS Quick Add Reference' extension.
Some info: http://ihadthisideaonce.com/2011/07/29/recommended-wovs-quick-add-reference/
Download link: https://visualstudiogallery.msdn.microsoft.com/dc06b54c-b6c4-4cf5-8203-a09c6979e881/
I hope it supports your questions..
Upvotes: 0
Reputation: 1364
Resharper does exactly this. If there's a class that is defined in another project in the solution, it offers you to reference that class and import the namespace. All you do is press "Alt+Enter, Enter" to pop up context menu and select the first option.
Upvotes: 7