Skip to content

Instantly share code, notes, and snippets.

@hach-que
Last active January 18, 2024 07:59
Show Gist options
  • Save hach-que/965e3a7274f52048615e15c66d96387e to your computer and use it in GitHub Desktop.
Save hach-que/965e3a7274f52048615e15c66d96387e to your computer and use it in GitHub Desktop.
"Build startup Unreal Engine project" for Visual Commander
Imports EnvDTE
Imports EnvDTE80
Imports Microsoft.VisualBasic
Public Class C
Implements VisualCommanderExt.ICommand
Sub Run(DTE As EnvDTE80.DTE2, package As Microsoft.VisualStudio.Shell.Package) Implements VisualCommanderExt.ICommand.Run
Dim sb As SolutionBuild2 = DTE.Solution.SolutionBuild
Dim config As SolutionConfiguration2 = sb.ActiveConfiguration
Dim configName = String.Format("{0}|{1}", config.Name, config.PlatformName)
sb.BuildProject(configName, sb.StartupProjects(0), False)
Dim window = DTE.Windows.Item(EnvDTE.Constants.vsWindowKindOutput)
window.Activate()
End Sub
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment