Code snippets‎ > ‎Utilities‎ > ‎

Visual studio


Sub BuildStartupProject()
    DTE.ExecuteCommand("View.Output")

    Dim sb As SolutionBuild = DTE.Solution.SolutionBuild
    Dim projName As String = sb.StartupProjects(0)
    sb.BuildProject(sb.ActiveConfiguration.Name, projName, False)
End Sub
Comments