-
Notifications
You must be signed in to change notification settings - Fork 4
/
WindowsFormBuild.ps1
19 lines (14 loc) · 1.17 KB
/
WindowsFormBuild.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if($($env:APPVEYOR)){
$msbuild = "C:\Program Files (x86)\MSBuild\15.0\Bin\amd64\MSBuild.exe"
}else{
$msbuild = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe"
}
.\nuget restore WindowsForms.Console.sln;
& $msbuild WindowsForms.Console.sln /property:Configuration=Release /p:TargetFrameworkVersion=v4.5 /p:OutputPath="bin\v4.5";
& $msbuild WindowsForms.Console.sln /property:Configuration=Release /p:TargetFrameworkVersion=v4.5.1 /p:OutputPath="bin\v4.5.1";
& $msbuild WindowsForms.Console.sln /property:Configuration=Release /p:TargetFrameworkVersion=v4.5.2 /p:OutputPath="bin\v4.5.2";
& $msbuild WindowsForms.Console.sln /property:Configuration=Release /p:TargetFrameworkVersion=v4.6 /p:OutputPath="bin\v4.6";
& $msbuild WindowsForms.Console.sln /property:Configuration=Release /p:TargetFrameworkVersion=v4.6.1 /p:OutputPath="bin\v4.6.1";
& $msbuild WindowsForms.Console.sln /property:Configuration=Release /p:TargetFrameworkVersion=v4.6.2 /p:OutputPath="bin\v4.6.2";
#& $msbuild WindowsForms.Console.sln /property:Configuration=Release /p:TargetFrameworkVersion=v4.7 /p:OutputPath="bin\v4.7";
.\nuget pack WindowsForm.Console.nuspec;