code_junkie

Can I create a Visual Studio macro to launch a specific project in the debugger?

Nov 11th, 2011
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. Dim projItem As UIHierarchyItem
  2.  
  3. projItem = DTE.ToolWindows.SolutionExplorer.GetItem("SolutionNameProjectFolderProjectName").Select(vsUISelectionType.vsUISelectionTypeSelect)
  4.  
  5. Sub DebugTheServer()
  6. DTE.Windows.Item(Constants.vsWindowKindSolutionExplorer).Activate()
  7. DTE.ActiveWindow.Object.GetItem("SolutionServerFolderServerProject").Select(vsUISelectionType.vsUISelectionTypeSelect)
  8. DTE.Windows.Item(Constants.vsWindowKindOutput).Activate()
  9. DTE.ExecuteCommand("ClassViewContextMenus.ClassViewProject.Debug.Startnewinstance")
  10. End Sub
Add Comment
Please, Sign In to add comment