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

Commit

Permalink
Fix build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
justcoding121 committed Dec 25, 2015
1 parent e60e985 commit fd36977
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .build/default.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,24 @@ $MSBuild ="${env:ProgramFiles(x86)}\MSBuild\12.0\Bin\msbuild.exe"

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

Task default -depends Clean, Update-AssemblyInfoFiles, Build, Package
Task default -depends Clean, Build, Package

Task Build -depends Restore-Packages {
Task Build -depends Restore-Packages, Update-AssemblyInfoFiles {
exec { . $MSBuild $SolutionFile /t:Build /v:normal /p:Configuration=$Configuration }
exec { . $MSBuild $SolutionFile /t:Build /v:normal /p:Configuration=$Configuration-Net45 }
}

Task Package {
Task Package -depends Build {
exec { . $NuGet pack "$SolutionRoot\EventHook\EventHook.nuspec" -Properties Configuration=$Configuration -OutputDirectory "$SolutionRoot" -Version "$Version" }
}

Task Clean {
Task Clean -depends Install-BuildTools {
Remove-Item -Path "$SolutionRoot\packages\*" -Exclude repositories.config -Recurse -Force
Get-ChildItem .\ -include bin,obj -Recurse | foreach ($_) { Remove-Item $_.fullname -Force -Recurse }
exec { . $MSBuild $SolutionFile /t:Clean /v:quiet }
}

Task Restore-Packages -depends Install-BuildTools {
Task Restore-Packages {
exec { . $NuGet restore $SolutionFile }
}

Expand Down

0 comments on commit fd36977

Please sign in to comment.