5
5
[string ]$root = $PSScriptRoot ,
6
6
[string ]$runTests = " YES" ,
7
7
[string ]$failBuildOnTest = " YES" ,
8
- [string ]$slnFile = " wilson.sln" ,
9
- [switch ]$runApiCompat ,
10
- [switch ]$generateContractAssemblies )
8
+ [string ]$slnFile = " wilson.sln"
9
+ )
11
10
12
11
# ################################################ Functions ############################################################
13
12
@@ -47,21 +46,6 @@ function CreateArtifactsRoot($folder)
47
46
mkdir $folder | Out-Null
48
47
}
49
48
50
- function GenerateContractAssemblies ($root )
51
- {
52
- # clear content of baseline files as it is not relevant for the next version
53
- ClearBaselineFiles($root )
54
-
55
- # execute generateContractAssemblies script
56
- & " $root \generateContractAssemblies.ps1" .
57
- }
58
-
59
- function ClearBaselineFiles ($root )
60
- {
61
- Write-Host " >>> Clear-Content $root \Tools\apiCompat\baseline\*.txt"
62
- Clear-Content $root \Tools\apiCompat\baseline\* .txt
63
- }
64
-
65
49
# ################################################ Functions ############################################################
66
50
67
51
if ($env: VSINSTALLDIR )
@@ -79,8 +63,6 @@ Write-Host "root: " $root;
79
63
Write-Host " runTests: " $runTests ;
80
64
Write-Host " failBuildOnTest: " $failBuildOnTest ;
81
65
Write-Host " slnFile: " $slnFile ;
82
- Write-Host " runApiCompat: " $runApiCompat ;
83
- Write-Host " generateContractAssemblies: " $generateContractAssemblies ;
84
66
WriteSectionFooter(" End build.ps1 - parameters" );
85
67
86
68
[xml ]$buildConfiguration = Get-Content $PSScriptRoot \buildConfiguration.xml
@@ -105,17 +87,17 @@ WriteSectionFooter("End Environment");
105
87
106
88
$ErrorActionPreference = " Stop"
107
89
108
- WriteSectionHeader(" VerifyResourceUsage.pl" );
90
+ WriteSectionHeader(" VerifyResourceUsage.pl" );
109
91
110
- Write-Host " >>> Start-Process -Wait -PassThru -NoNewWindow perl $root \src\VerifyResourceUsage.pl"
111
- $verifyResourceUsageResult = Start-Process - Wait - PassThru - NoNewWindow perl $root \src\VerifyResourceUsage.pl
92
+ Write-Host " >>> Start-Process -Wait -PassThru -NoNewWindow perl $root \src\VerifyResourceUsage.pl"
93
+ $verifyResourceUsageResult = Start-Process - Wait - PassThru - NoNewWindow perl $root \src\VerifyResourceUsage.pl
112
94
113
- if ($verifyResourceUsageResult.ExitCode -ne 0 )
114
- {
115
- throw " VerifyResourceUsage.pl failed."
116
- }
95
+ if ($verifyResourceUsageResult.ExitCode -ne 0 )
96
+ {
97
+ throw " VerifyResourceUsage.pl failed."
98
+ }
117
99
118
- WriteSectionFooter(" End VerifyResourceUsage.pl" );
100
+ WriteSectionFooter(" End VerifyResourceUsage.pl" );
119
101
120
102
WriteSectionHeader(" Build" );
121
103
@@ -138,24 +120,17 @@ CreateArtifactsRoot($artifactsRoot);
138
120
pushd
139
121
Set-Location $root
140
122
Write-Host " "
141
- Write-Host " >>> Start-Process -wait -NoNewWindow $msbuildexe /restore:True /p:UseSharedCompilation=false /nr:false /verbosity:m /p:Configuration=$buildType /p:RunApiCompat= $runApiCompat $slnFile "
123
+ Write-Host " >>> Start-Process -wait -NoNewWindow $msbuildexe /restore:True /p:UseSharedCompilation=false /nr:false /verbosity:m /p:Configuration=$buildType $slnFile "
142
124
Write-Host " "
143
125
Write-Host " msbuildexe: " $msbuildexe
144
- $p = Start-Process - Wait - PassThru - NoNewWindow $msbuildexe " /r:True /p:UseSharedCompilation=false /nr:false /verbosity:m /p:Configuration=$buildType /p:RunApiCompat= $runApiCompat $slnFile "
126
+ $p = Start-Process - Wait - PassThru - NoNewWindow $msbuildexe " /r:True /p:UseSharedCompilation=false /nr:false /verbosity:m /p:Configuration=$buildType $slnFile "
145
127
146
128
if ($p.ExitCode -ne 0 )
147
129
{
148
130
throw " Build failed."
149
131
}
150
132
popd
151
133
152
- if ($generateContractAssemblies.IsPresent )
153
- {
154
- WriteSectionHeader(" Generating Contract Assemblies" );
155
- GenerateContractAssemblies($root );
156
- WriteSectionFooter(" End Generating Contract Assemblies" );
157
- }
158
-
159
134
foreach ($project in $buildConfiguration.SelectNodes (" root/projects/src/project" ))
160
135
{
161
136
$name = $project.name ;
0 commit comments