Skip to content

Commit 255ea3b

Browse files
author
Steve Salas
committed
Do not skip init and tests by default
1 parent 47aaf0c commit 255ea3b

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

installers/DotNet-Tracer/build.ps1

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# This script creates the Windows Code Pulse .NET Tracer package
33
#
44
param (
5-
[switch] $skipBuildInit=$true,
6-
[switch] $skipTests=$true,
5+
[switch] $skipBuildInit,
6+
[switch] $skipTests,
77
[switch] $signOutput,
88
[string] $dotNetTracerWindowsDownloadUrl,
9-
[string] $version='1.0.0'
9+
[string] $version='1.0.0'
1010
)
1111

1212
Set-PSDebug -Strict
@@ -110,18 +110,6 @@ if ($lastexitcode -ne 0) {
110110
exit $lastexitcode
111111
}
112112

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-
125113
if (-not $skipTests) {
126114
write-verbose "Building CodePulse.Client.Test ($buildConfiguration)..."
127115
& $msbuildPath /p:Configuration=$buildConfiguration /p:SolutionDir=..\ CodePulse.Client.Test
@@ -150,6 +138,18 @@ if (-not $skipTests) {
150138
}
151139
}
152140

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+
153153
if ($signOutput) {
154154

155155
$signingInstructions = @'

0 commit comments

Comments
 (0)