11

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.

Jonathan Taylor
  • 311
  • 2
  • 10
  • @JohnSaunders:No There is no Definition when you not write using.I think he wants to find assembly/namespace of an object when he don't know what are them. – ahmadali shafiee Dec 19 '11 at 19:52
  • 1
    Wasn't sure. I use ReSharper, and I would simply click the type, then type Control-B. – John Saunders Dec 19 '11 at 19:53
  • Maybe something like RedGate .Net reflector would help. The built in object browser may be an option as well but I'm not seeing the full name of the assembly in the object browser. – Amir Aliabadi Dec 19 '11 at 20:00
  • 3
    Posted a decent answer over at a similar question: http://stackoverflow.com/a/26364337/250094 – Alex Dresko Oct 14 '14 at 15:16
  • There is a great answer: http://stackoverflow.com/a/17396630/3899583 – vojta Dec 15 '16 at 13:47

3 Answers3

3

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

emilast
  • 559
  • 1
  • 5
  • 11
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.

hawkke
  • 4,242
  • 1
  • 27
  • 23
  • Thanks. That plug in is very close to what I need. Unfortunately, I'm not having any luck with getting the actual assembly information dialog to appear in my solution. Maybe the maturity isn't there yet for this project? – Jonathan Taylor Dec 28 '11 at 18:01
  • 1
    Interesting, I haven't had any problems with it. Are you trying to view the assembly information of the project? It doesn't come up that way. Select 'Assembly Information' on the reference to the project in the References folder and it comes up for me. But you're right, it would be ideal if you could just view the information at the project level. – hawkke Dec 29 '11 at 17:44
  • Okay, I see what it does now. I was a confused because the "Assembly Information" option is always in the context menu in Solution Explorer. I might look at the source to see how it's done this weekend and if something closer to what I need can be accomplished. – Jonathan Taylor Dec 30 '11 at 17:26
-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

Rob Carroll
  • 377
  • 1
  • 7
  • 16