|
2 | 2 | # This script creates the Windows Code Pulse .NET Tracer package |
3 | 3 | # |
4 | 4 | param ( |
5 | | - [switch] $skipBuildInit=$true, |
6 | | - [switch] $skipTests=$true, |
| 5 | + [switch] $skipBuildInit, |
| 6 | + [switch] $skipTests, |
7 | 7 | [switch] $signOutput, |
8 | 8 | [string] $dotNetTracerWindowsDownloadUrl, |
9 | | - [string] $version='1.0.0' |
| 9 | + [string] $version='1.0.0' |
10 | 10 | ) |
11 | 11 |
|
12 | 12 | Set-PSDebug -Strict |
@@ -110,18 +110,6 @@ if ($lastexitcode -ne 0) { |
110 | 110 | exit $lastexitcode |
111 | 111 | } |
112 | 112 |
|
113 | | -write-verbose "Restoring original '$assemblyInfoPath' contents..." |
114 | | -Set-TextContent $assemblyInfoPath $assemblyInfo |
115 | | - |
116 | | -write-verbose "Restoring original '$bundlePath' contents..." |
117 | | -Set-TextContent $bundlePath $bundle |
118 | | - |
119 | | -write-verbose "Restoring original '$product32Path' contents..." |
120 | | -Set-TextContent $product32Path $product32 |
121 | | - |
122 | | -write-verbose "Restoring original '$product64Path' contents..." |
123 | | -Set-TextContent $product64Path $product64 |
124 | | - |
125 | 113 | if (-not $skipTests) { |
126 | 114 | write-verbose "Building CodePulse.Client.Test ($buildConfiguration)..." |
127 | 115 | & $msbuildPath /p:Configuration=$buildConfiguration /p:SolutionDir=..\ CodePulse.Client.Test |
@@ -150,6 +138,18 @@ if (-not $skipTests) { |
150 | 138 | } |
151 | 139 | } |
152 | 140 |
|
| 141 | +write-verbose "Restoring original '$assemblyInfoPath' contents..." |
| 142 | +Set-TextContent $assemblyInfoPath $assemblyInfo |
| 143 | + |
| 144 | +write-verbose "Restoring original '$bundlePath' contents..." |
| 145 | +Set-TextContent $bundlePath $bundle |
| 146 | + |
| 147 | +write-verbose "Restoring original '$product32Path' contents..." |
| 148 | +Set-TextContent $product32Path $product32 |
| 149 | + |
| 150 | +write-verbose "Restoring original '$product64Path' contents..." |
| 151 | +Set-TextContent $product64Path $product64 |
| 152 | + |
153 | 153 | if ($signOutput) { |
154 | 154 |
|
155 | 155 | $signingInstructions = @' |
|
0 commit comments