Created
January 17, 2023 03:16
-
-
Save benhar-dev/f2611189230d0ff0f9919359f2518dee to your computer and use it in GitHub Desktop.
Powershell - Automation Interface
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
$prjDir = "C:\dev\demo-automation-interface-hmi\" | |
$prjName = "demo-automation-interface-hmi.sln" | |
$prjPath = $prjDir += $prjName | |
$dte = new-object -com TcXaeShell.DTE.15.0 | |
$dte.SuppressUI = $false | |
$dte.MainWindow.Visible = $true | |
$sln = $dte.Solution | |
$sln.Open($prjPath) | |
$project = $sln.Projects.Item(1) | |
$systemManager = $project.Object | |
$configManager = $systemManager.ConfigurationManager | |
Write-Host $dte.Solution.SolutionBuild.ActiveConfiguration.Name | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment