This project is read-only.
1
Vote

Overriding a method with a parameter from an unreferenced assembly should add a reference

description

When I use IntelliSense to override a method, if the method takes a parameter from an assembly that I don't reference, you should automatically add the reference.
Otherwise, completing the override will immediately give three compiler errors, most of which do not have have quick fixes to add the reference.

You should also remove the qualifying namespace after adding the reference.

I found this issue when overriding Microsoft.VisualStudio.Text.Editor.KeyProcessor.KeyDown while missing a reference to PresentationCore, but with using System.Windows.Input.

comments

Pilchie wrote Nov 10, 2014 at 9:57 PM

Thanks for the suggestion, I agree that it would be nice, but not likely something we'll do in the short term. Leaving this Issue in the proposed state to track it though.