Hi,
Do some one know how capture solution file name and the children directory names through solution click event in Visual studio 2008, 2010.
Idea is:- My application is in C# . Net 3.5 with VS2008
1. I click on solution file and start building my solution.
2. In mean time I have to invoke an application in prebuild event then my application should get the path of .SLN file automatically.
3. Then my application should list all the VCPROJECT in the file and the relevent source and include directory.
A quick help will be appreciated.
Loading
Sam HobbsPosted Sep 15, 2011, 11:52 PM
Try this. In the VS "Tools" menu choose "Macros | Macros Explorer". In the Macros Explorer expand the Samples node, then the Utilities node. Run the ListProj macro. That will show the files in the current project. You can also use a macro to list all the projects in a solution; I think it would be DTE.Solution.Projects. Does that help?
Suthish NairPosted Sep 15, 2011, 10:48 AM