forked from twilio/twilio-csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.ps1
46 lines (30 loc) · 1.82 KB
/
build.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
msbuild /t:clean /verbosity:minimal
if ($lastExitCode -ne 0) { exit $lastExitCode }
# .NET Framework 3.5 Target & Tests
msbuild /t:restore /p:TargetFramework=net35 /verbosity:minimal
if ($lastExitCode -ne 0) { exit $lastExitCode }
msbuild /p:TargetFramework=net35 /p:Configuration=Release /verbosity:minimal
if ($lastExitCode -ne 0) { exit $lastExitCode }
.\test\Twilio.Test\bin\Release\net35\Twilio.Test.exe
if ($lastExitCode -ne 0) { exit $lastExitCode }
# .NET Framework 4.5.1 Target & Tests
msbuild /t:restore /p:TargetFramework=net451 /verbosity:minimal
if ($lastExitCode -ne 0) { exit $lastExitCode }
msbuild /p:TargetFramework=net451 /p:Configuration=Release /verbosity:minimal
if ($lastExitCode -ne 0) { exit $lastExitCode }
.\test\Twilio.Test\bin\Release\net451\Twilio.Test.exe
if ($lastExitCode -ne 0) { exit $lastExitCode }
# .NET Standard 1.4 Target & Tests
msbuild .\src\Twilio\Twilio.csproj /t:restore /p:TargetFramework=netstandard1.4 /verbosity:minimal
if ($lastExitCode -ne 0) { exit $lastExitCode }
msbuild .\test\Twilio.Test\Twilio.Test.csproj /t:restore /p:TargetFramework=netcoreapp1.1 /verbosity:minimal
if ($lastExitCode -ne 0) { exit $lastExitCode }
msbuild .\src\Twilio\Twilio.csproj /p:TargetFramework=netstandard1.4 /p:Configuration=Release /verbosity:minimal
if ($lastExitCode -ne 0) { exit $lastExitCode }
msbuild .\test\Twilio.Test\Twilio.Test.csproj /p:TargetFramework=netcoreapp1.1 /p:Configuration=Release /verbosity:minimal
if ($lastExitCode -ne 0) { exit $lastExitCode }
dotnet run --framework netcoreapp1.1 --project .\test\Twilio.Test\Twilio.Test.csproj
if ($lastExitCode -ne 0) { exit $lastExitCode }
# Create the NuGet Package
msbuild .\src\Twilio\Twilio.csproj /t:pack /p:Configuration=Release /verbosity:minimal
if ($lastExitCode -ne 0) { exit $lastExitCode }