Skip to content

Commit

Permalink
Fixed the build script and added Build-Package.ps1.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfowl committed Feb 18, 2012
1 parent e9252ee commit f47c302
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions Scripts/Build-Package.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
$ScriptRoot = (Split-Path -parent $MyInvocation.MyCommand.Definition)
. $ScriptRoot\_Common.ps1

& "..\Build.cmd"
if($LastExitCode -ne 0) {
print-error("=================================================")
print-error(" Error building project. ")
print-error("=================================================")
} else {
& "$ScriptRoot\Package.ps1"
if($LastExitCode -ne 0) {
print-error("=================================================")
print-error(" Error creating the Azure Packages. ")
print-error("=================================================")
} else {
print-success("=================================================")
print-success(" All Done, Son. ")
print-success("=================================================")
}
}
2 changes: 1 addition & 1 deletion build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ set config=%1
if "%config%" == "" (
set config=debug
)
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild Build\Build.proj /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild %~dp0\Build\Build.proj /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false

0 comments on commit f47c302

Please sign in to comment.