From 5a0ac5415be63fc11a2295c778d64dba713f8f45 Mon Sep 17 00:00:00 2001 From: titanium007 Date: Fri, 25 Dec 2015 16:56:06 -0500 Subject: [PATCH] delete artifacts before build --- .build/default.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.build/default.ps1 b/.build/default.ps1 index 6ed9e88..62ccc4c 100644 --- a/.build/default.ps1 +++ b/.build/default.ps1 @@ -31,15 +31,15 @@ $MSBuild ="${env:ProgramFiles(x86)}\MSBuild\12.0\Bin\msbuild.exe" FormatTaskName (("-"*25) + "[{0}]" + ("-"*25)) -Task default -depends Clean, Build, Package +Task default -depends Clean, Update-AssemblyInfoFiles, Build, Package Task Build -depends Restore-Packages { exec { . $MSBuild $SolutionFile /t:Build /v:normal /p:Configuration=$Configuration } exec { . $MSBuild $SolutionFile /t:Build /v:normal /p:Configuration=$Configuration-Net45 } } -Task Package -depends Update-AssemblyInfoFiles, Build { - exec { . $NuGet pack "$SolutionRoot\EventHook\EventHook.nuspec" -Properties Configuration=$Configuration -OutputDirectory "$SolutionRoot" -Version "$Version" } +Task Package { + exec { . $NuGet pack "$SolutionRoot\EventHook\EventHook.nuspec" -Properties Configuration=$Configuration -OutputDirectory "$SolutionRoot\packages" -Version "$Version" } } Task Clean {