Domanda

I want to use this macro to format my code:
http://www.kodefuguru.com/post/Format-Solution.aspx

I guess I need to the change line:

Dim sol As Solution = DTE.Solution

My solution appears in Visual Studio 2010 like so:
Solution 'ABC.Mmc.Client' (16 Projects)

I've tried changing the line to:

Dim sol As Solution = ABC.Mmc.Client.Solution  

but that doesn't work.
What do I need to do?

È stato utile?

Soluzione

DTE.Solution refers to the currently loaded solution. Leave the code as it is, load your solution, and you're good to go.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top