diff --git a/scripts/publish-all.ps1 b/scripts/publish-all.ps1 index 65c24fc..b19edb2 100644 --- a/scripts/publish-all.ps1 +++ b/scripts/publish-all.ps1 @@ -32,10 +32,10 @@ switch ($os) $ProgramFiles = [Environment]::GetEnvironmentVariable("ProgramFiles(x86)") $vsLocation= &@("$ProgramFiles\Microsoft Visual Studio\Installer\vswhere.exe") "-latest" "-products" "*" "-requires" "Microsoft.VisualStudio.Component.VC.Tools.x86.x64" "-property" "installationPath" + &"nuget" "restore" $sharpproj = "SPRView.Net.Win32.Thumbnail" foreach($proj in $sharpproj){ Set-Location $proj - &"nuget" "restore" if(Test-Path("$($vsLocation)\Common7\Tools\vsdevcmd.bat")){ &"$($vsLocation)\Common7\Tools\vsdevcmd.bat" "-arch=x64" &"$($vsLocation)\Msbuild\Current\Bin\MSBuild.exe" "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)/../SPRView.Net.Win32.Thumbnail/SPRView.Net.Win32.Thumbnail.vcxproj" /p:Configuration="Release" /p:Platform="x64"