Skip to content

Commit

Permalink
Changed to work with PS 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mansellan committed Jul 22, 2018
1 parent 5a21153 commit 7f5e6d1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Rubberduck.Deployment/BuildRegistryScript.ps1
Expand Up @@ -100,12 +100,13 @@ try
$option = [System.StringSplitOptions]::RemoveEmptyEntries;
$files = $filesToExtract.Split($separator, $option);

# Load the Deployment DLL
# Load the Deployment DLL
[System.Reflection.Assembly]::LoadFrom($builderAssemblyPath);

# Determine if MIDL is available for building
$devPath = Resolve-Path -Path "%ProgramFiles%*\Microsoft Visual Studio\*\*\Common*\Tools\VsDevCmd.bat";
if($devPath)
$devPath = $Env:ProgramFiles + "*\Microsoft Visual Studio\*\*\Common*\Tools\VsDevCmd.bat";
$devPathResolved = Resolve-Path -Path $devPath;
if($devPathResolved)
{
# Additional verifications as some versions of VsDevCmd.bat might not initialize the environment for C++ build tools
$result = Get-Module -ListAvailable -Name "VSSetup" -ErrorAction SilentlyContinue;
Expand Down

0 comments on commit 7f5e6d1

Please sign in to comment.