Skip to content
Browse files

Added buildConfiguration with build process

added a space in Readme.txt for readability
  • Loading branch information...
1 parent b665c9c commit a27d3381f4fe05f9f949e9fae4e56c0972c9a013 Joseph Thomas committed May 3, 2012
Showing with 15 additions and 14 deletions.
  1. +14 −13 default.ps1
  2. +1 −1 readme.txt
View
27 default.ps1
@@ -9,6 +9,7 @@
$NugetKey = ""
$PackageIds = ""
$DownloadDependentPackages = $false
+ $buildConfiguration = "Debug"
}
@@ -111,7 +112,7 @@ task CompileMain -depends InitEnvironment -description "Builds NServiceBus.dll a
$solutions = dir "$srcDir\core\*.sln"
$solutions | % {
$solutionFile = $_.FullName
- exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\nservicebus\" }
+ exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\nservicebus\" /p:Configuration=$buildConfiguration }
}
$assemblies = @()
@@ -146,15 +147,15 @@ task CompileCore -depends InitEnvironment -description "Builds NServiceBus.Core.
$solutions = dir "*.sln"
$solutions | % {
$solutionFile = $_.FullName
- exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\nservicebus.core\" }
+ exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\nservicebus.core\" /p:Configuration=$buildConfiguration }
}
}
cd $baseDir
$solutions = dir "$srcDir\AttributeAssemblies\*.sln"
$solutions | % {
$solutionFile = $_.FullName
- exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\attributeAssemblies\" }
+ exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\attributeAssemblies\" /p:Configuration=$buildConfiguration }
}
$attributeAssembly = "$buildBase\attributeAssemblies\NServiceBus.Core.dll"
@@ -197,7 +198,7 @@ task CompileContainers -depends InitEnvironment -description "Builds the contain
$solutions = dir "$srcDir\impl\ObjectBuilder\*.sln"
$solutions | % {
$solutionFile = $_.FullName
- exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\containers\" }
+ exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\containers\" /p:Configuration=$buildConfiguration }
}
if(Test-Path "$buildBase\output\containers"){
@@ -254,7 +255,7 @@ task CompileWebServicesIntegration -depends InitEnvironment -description "Builds
$solutions = dir "$srcDir\integration\WebServices\*.sln"
$solutions | % {
$solutionFile = $_.FullName
- exec { &$script:msBuild $solutionFile /p:OutDir="$outDir\" }
+ exec { &$script:msBuild $solutionFile /p:OutDir="$outDir\" /p:Configuration=$buildConfiguration }
}
Copy-Item $outDir\NServiceBus.Integration.*.* $binariesDir -Force;
@@ -265,7 +266,7 @@ task CompileNHibernate -depends InitEnvironment -description "Builds NServiceBus
$solutions = dir "$srcDir\nhibernate\*.sln"
$solutions | % {
$solutionFile = $_.FullName
- exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\NServiceBus.NHibernate\" }
+ exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\NServiceBus.NHibernate\" /p:Configuration=$buildConfiguration }
}
$assemblies = dir $buildBase\NServiceBus.NHibernate\NServiceBus.**NHibernate**.dll -Exclude **Tests.dll
Ilmerge $ilMergeKey $outDir "NServiceBus.NHibernate" $assemblies "" "dll" $script:ilmergeTargetFramework "$buildBase\NServiceBusNHibernateMergeLog.txt" $ilMergeExclude
@@ -289,7 +290,7 @@ task CompileAzure -depends InitEnvironment -description "Builds NServiceBus.Azur
$solutions = dir "$srcDir\azure\*.sln"
$solutions | % {
$solutionFile = $_.FullName
- exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\azure\NServiceBus.Azure\" }
+ exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\azure\NServiceBus.Azure\" /p:Configuration=$buildConfiguration }
}
$attributeAssembly = "$buildBase\attributeAssemblies\NServiceBus.Azure.dll"
$assemblies = dir $buildBase\azure\NServiceBus.Azure\NServiceBus.**Azure**.dll -Exclude **Tests.dll
@@ -322,7 +323,7 @@ task CompileHosts -depends InitEnvironment -description "Builds NServiceBus.Hos
$solutions = dir "$srcDir\hosting\*.sln"
$solutions | % {
$solutionFile = $_.FullName
- exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\hosting\" }
+ exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\hosting\" /p:Configuration=$buildConfiguration }
}
$assemblies = @("$buildBase\hosting\NServiceBus.Hosting.Windows.exe", "$buildBase\hosting\NServiceBus.Hosting.dll",
@@ -341,7 +342,7 @@ task CompileHosts32 -depends InitEnvironment -description "Builds NServiceBus.H
exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\hosting32\" /t:Clean }
- exec { &$script:msBuild $solutionFile /p:PlatformTarget=x86 /p:OutDir="$buildBase\hosting32\"}
+ exec { &$script:msBuild $solutionFile /p:PlatformTarget=x86 /p:OutDir="$buildBase\hosting32\" /p:Configuration=$buildConfiguration}
}
@@ -359,7 +360,7 @@ task CompileAzureHosts -depends InitEnvironment -description "Builds NServiceBu
$solutions = dir "$srcDir\azure\Hosting\NServiceBus.Hosting.sln"
$solutions | % {
$solutionFile = $_.FullName
- exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\azure\Hosting\"}
+ exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\azure\Hosting\" /p:Configuration=$buildConfiguration}
}
$assemblies = @("$buildBase\azure\Hosting\NServiceBus.Hosting.Azure.dll",
@@ -373,7 +374,7 @@ task CompileAzureHosts -depends InitEnvironment -description "Builds NServiceBu
$solutions = dir "$srcDir\azure\Timeout\Timeout.sln"
$solutions | % {
$solutionFile = $_.FullName
- exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\azure\Timeout\"}
+ exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\azure\Timeout\" /p:Configuration=$buildConfiguration}
}
echo "Copying NServiceBus.Timeout.Hosting.Azure....."
@@ -382,7 +383,7 @@ task CompileAzureHosts -depends InitEnvironment -description "Builds NServiceBu
$solutions = dir "$srcDir\azure\Hosting\NServiceBus.Hosting.HostProcess.sln"
$solutions | % {
$solutionFile = $_.FullName
- exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\azure\Hosting\"}
+ exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\azure\Hosting\" /p:Configuration=$buildConfiguration}
}
$assemblies = @("$buildBase\azure\Hosting\NServiceBus.Hosting.Azure.HostProcess.exe",
@@ -402,7 +403,7 @@ task CompileTools -depends InitEnvironment -description "Builds the tools XsdGen
$currentOutDir = "$buildBase\$_\"
$solutions | % {
$solutionFile = $_.FullName
- exec { &$script:msBuild $solutionFile /p:OutDir="$currentOutDir" }
+ exec { &$script:msBuild $solutionFile /p:OutDir="$currentOutDir" /p:Configuration=$buildConfiguration}
}
}
View
2 readme.txt
@@ -19,7 +19,7 @@ http://www.nservicebus.com/EULA.aspx
============
The following web page contains information about how to build NServiceBus form source files:
-http://nservicebus.com/BuildingNServiceBusFromSource.aspxIn order to build the source, run the build.ps1 powershell script.
+http://nservicebus.com/BuildingNServiceBusFromSource.aspx In order to build the source, run the build.ps1 powershell script.
You'll find the built assemblies in /build/binaries.

0 comments on commit a27d338

Please sign in to comment.
Something went wrong with that request. Please try again.