Last active
January 18, 2024 07:59
-
-
Save hach-que/965e3a7274f52048615e15c66d96387e to your computer and use it in GitHub Desktop.
"Build startup Unreal Engine project" for Visual Commander
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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