Skip to content
This repository was archived by the owner on Apr 21, 2021. It is now read-only.

Commit 5a0ac54

Browse files
committed
delete artifacts before build
1 parent 4498745 commit 5a0ac54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.build/default.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ $MSBuild ="${env:ProgramFiles(x86)}\MSBuild\12.0\Bin\msbuild.exe"
3131

3232
FormatTaskName (("-"*25) + "[{0}]" + ("-"*25))
3333

34-
Task default -depends Clean, Build, Package
34+
Task default -depends Clean, Update-AssemblyInfoFiles, Build, Package
3535

3636
Task Build -depends Restore-Packages {
3737
exec { . $MSBuild $SolutionFile /t:Build /v:normal /p:Configuration=$Configuration }
3838
exec { . $MSBuild $SolutionFile /t:Build /v:normal /p:Configuration=$Configuration-Net45 }
3939
}
4040

41-
Task Package -depends Update-AssemblyInfoFiles, Build {
42-
exec { . $NuGet pack "$SolutionRoot\EventHook\EventHook.nuspec" -Properties Configuration=$Configuration -OutputDirectory "$SolutionRoot" -Version "$Version" }
41+
Task Package {
42+
exec { . $NuGet pack "$SolutionRoot\EventHook\EventHook.nuspec" -Properties Configuration=$Configuration -OutputDirectory "$SolutionRoot\packages" -Version "$Version" }
4343
}
4444

4545
Task Clean {

0 commit comments

Comments
 (0)