How to get the active project in visual studio
-
hi, im coding an Add-In (Visual C++) that do some changes to the document files in Visual Studio (.NET). in the code i need to get the Active Project that in the solution explorer (the one that will run when the project is execute). how can i do that? in MFC i think , in the class IApplication, there's ->get_ActiveProject, but in the classes of EnvDTE there's not (i didn't find). does anyone know about something like that? or is there another way to know which is the active/startup project? thanks in advance, Avi.
-
hi, im coding an Add-In (Visual C++) that do some changes to the document files in Visual Studio (.NET). in the code i need to get the Active Project that in the solution explorer (the one that will run when the project is execute). how can i do that? in MFC i think , in the class IApplication, there's ->get_ActiveProject, but in the classes of EnvDTE there's not (i didn't find). does anyone know about something like that? or is there another way to know which is the active/startup project? thanks in advance, Avi.
Looking at a (good) sample add-in that comes with source code(Fast Solution Build by Joshua Jensen[^]), it looks like: The DTE has a property called Solution, which has a property called SolutionBuild, which has a property called StartupProjects. This is the list of startup projects for the solution. HTH! Stuart Dootson 'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
-
Looking at a (good) sample add-in that comes with source code(Fast Solution Build by Joshua Jensen[^]), it looks like: The DTE has a property called Solution, which has a property called SolutionBuild, which has a property called StartupProjects. This is the list of startup projects for the solution. HTH! Stuart Dootson 'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
thanks mate!