问题
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:
You can use Object Browser to do that.
For example, if you want to copy full qualified name of WriteLine method, you can search it in Object Browser.
Then you can copy its full qualified name in the result list - System.Console.WriteLine().
回答4:
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
来源:https://stackoverflow.com/questions/8566628/is-there-a-way-within-visual-studio-to-easily-get-qualified-type-names