-->

Is there a way within Visual Studio to easily get

2020-08-13 07:32发布

问题:

I'm looking for an extension/process for getting an object's assembly qualified type name within Visual Studio. I'm aware that you can write a quick console app to output this but find it to be a clumsy process. Ideally, I'd like the ability to right-click on a type name, and have the option to copy it's assembly qualified name to the clipboard in order to paste into my DI Container's configuration file.

回答1:

In newer versions of ReSharper you can use the ReSharper/Edit/Copy Fully-qualified name/ Source browser URI to clipboard menu option.



回答2:

Assembly Information is probably close to what you are looking for. It seems to only show information on your references but should't be a problem if you have another project in your solution referencing the assembly.

Good idea for a plug-in if it's possible.



回答3:

Try using Productivity Power Tools. Its free and provides a whole slew of other great extension for Visual Studio.

http://visualstudiogallery.msdn.microsoft.com/d0d33361-18e2-46c0-8ff2-4adea1e34fef