Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added buildConfiguration with build process

added a space in Readme.txt for readability
  • Loading branch information...
commit a27d3381f4fe05f9f949e9fae4e56c0972c9a013 1 parent b665c9c
Joseph Thomas authored

Showing 2 changed files with 15 additions and 14 deletions. Show diff stats Hide diff stats

  1. +14 13 default.ps1
  2. +1 1  readme.txt
27 default.ps1
@@ -9,6 +9,7 @@
9 9 $NugetKey = ""
10 10 $PackageIds = ""
11 11 $DownloadDependentPackages = $false
  12 + $buildConfiguration = "Debug"
12 13
13 14 }
14 15
@@ -111,7 +112,7 @@ task CompileMain -depends InitEnvironment -description "Builds NServiceBus.dll a
111 112 $solutions = dir "$srcDir\core\*.sln"
112 113 $solutions | % {
113 114 $solutionFile = $_.FullName
114   - exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\nservicebus\" }
  115 + exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\nservicebus\" /p:Configuration=$buildConfiguration }
115 116 }
116 117
117 118 $assemblies = @()
@@ -146,7 +147,7 @@ task CompileCore -depends InitEnvironment -description "Builds NServiceBus.Core.
146 147 $solutions = dir "*.sln"
147 148 $solutions | % {
148 149 $solutionFile = $_.FullName
149   - exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\nservicebus.core\" }
  150 + exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\nservicebus.core\" /p:Configuration=$buildConfiguration }
150 151 }
151 152 }
152 153 cd $baseDir
@@ -154,7 +155,7 @@ task CompileCore -depends InitEnvironment -description "Builds NServiceBus.Core.
154 155 $solutions = dir "$srcDir\AttributeAssemblies\*.sln"
155 156 $solutions | % {
156 157 $solutionFile = $_.FullName
157   - exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\attributeAssemblies\" }
  158 + exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\attributeAssemblies\" /p:Configuration=$buildConfiguration }
158 159 }
159 160
160 161 $attributeAssembly = "$buildBase\attributeAssemblies\NServiceBus.Core.dll"
@@ -197,7 +198,7 @@ task CompileContainers -depends InitEnvironment -description "Builds the contain
197 198 $solutions = dir "$srcDir\impl\ObjectBuilder\*.sln"
198 199 $solutions | % {
199 200 $solutionFile = $_.FullName
200   - exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\containers\" }
  201 + exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\containers\" /p:Configuration=$buildConfiguration }
201 202 }
202 203
203 204 if(Test-Path "$buildBase\output\containers"){
@@ -254,7 +255,7 @@ task CompileWebServicesIntegration -depends InitEnvironment -description "Builds
254 255 $solutions = dir "$srcDir\integration\WebServices\*.sln"
255 256 $solutions | % {
256 257 $solutionFile = $_.FullName
257   - exec { &$script:msBuild $solutionFile /p:OutDir="$outDir\" }
  258 + exec { &$script:msBuild $solutionFile /p:OutDir="$outDir\" /p:Configuration=$buildConfiguration }
258 259 }
259 260
260 261 Copy-Item $outDir\NServiceBus.Integration.*.* $binariesDir -Force;
@@ -265,7 +266,7 @@ task CompileNHibernate -depends InitEnvironment -description "Builds NServiceBus
265 266 $solutions = dir "$srcDir\nhibernate\*.sln"
266 267 $solutions | % {
267 268 $solutionFile = $_.FullName
268   - exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\NServiceBus.NHibernate\" }
  269 + exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\NServiceBus.NHibernate\" /p:Configuration=$buildConfiguration }
269 270 }
270 271 $assemblies = dir $buildBase\NServiceBus.NHibernate\NServiceBus.**NHibernate**.dll -Exclude **Tests.dll
271 272 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
289 290 $solutions = dir "$srcDir\azure\*.sln"
290 291 $solutions | % {
291 292 $solutionFile = $_.FullName
292   - exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\azure\NServiceBus.Azure\" }
  293 + exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\azure\NServiceBus.Azure\" /p:Configuration=$buildConfiguration }
293 294 }
294 295 $attributeAssembly = "$buildBase\attributeAssemblies\NServiceBus.Azure.dll"
295 296 $assemblies = dir $buildBase\azure\NServiceBus.Azure\NServiceBus.**Azure**.dll -Exclude **Tests.dll
@@ -322,7 +323,7 @@ task CompileHosts -depends InitEnvironment -description "Builds NServiceBus.Hos
322 323 $solutions = dir "$srcDir\hosting\*.sln"
323 324 $solutions | % {
324 325 $solutionFile = $_.FullName
325   - exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\hosting\" }
  326 + exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\hosting\" /p:Configuration=$buildConfiguration }
326 327 }
327 328
328 329 $assemblies = @("$buildBase\hosting\NServiceBus.Hosting.Windows.exe", "$buildBase\hosting\NServiceBus.Hosting.dll",
@@ -341,7 +342,7 @@ task CompileHosts32 -depends InitEnvironment -description "Builds NServiceBus.H
341 342
342 343 exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\hosting32\" /t:Clean }
343 344
344   - exec { &$script:msBuild $solutionFile /p:PlatformTarget=x86 /p:OutDir="$buildBase\hosting32\"}
  345 + exec { &$script:msBuild $solutionFile /p:PlatformTarget=x86 /p:OutDir="$buildBase\hosting32\" /p:Configuration=$buildConfiguration}
345 346 }
346 347
347 348
@@ -359,7 +360,7 @@ task CompileAzureHosts -depends InitEnvironment -description "Builds NServiceBu
359 360 $solutions = dir "$srcDir\azure\Hosting\NServiceBus.Hosting.sln"
360 361 $solutions | % {
361 362 $solutionFile = $_.FullName
362   - exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\azure\Hosting\"}
  363 + exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\azure\Hosting\" /p:Configuration=$buildConfiguration}
363 364 }
364 365
365 366 $assemblies = @("$buildBase\azure\Hosting\NServiceBus.Hosting.Azure.dll",
@@ -373,7 +374,7 @@ task CompileAzureHosts -depends InitEnvironment -description "Builds NServiceBu
373 374 $solutions = dir "$srcDir\azure\Timeout\Timeout.sln"
374 375 $solutions | % {
375 376 $solutionFile = $_.FullName
376   - exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\azure\Timeout\"}
  377 + exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\azure\Timeout\" /p:Configuration=$buildConfiguration}
377 378 }
378 379
379 380 echo "Copying NServiceBus.Timeout.Hosting.Azure....."
@@ -382,7 +383,7 @@ task CompileAzureHosts -depends InitEnvironment -description "Builds NServiceBu
382 383 $solutions = dir "$srcDir\azure\Hosting\NServiceBus.Hosting.HostProcess.sln"
383 384 $solutions | % {
384 385 $solutionFile = $_.FullName
385   - exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\azure\Hosting\"}
  386 + exec { &$script:msBuild $solutionFile /p:OutDir="$buildBase\azure\Hosting\" /p:Configuration=$buildConfiguration}
386 387 }
387 388
388 389 $assemblies = @("$buildBase\azure\Hosting\NServiceBus.Hosting.Azure.HostProcess.exe",
@@ -402,7 +403,7 @@ task CompileTools -depends InitEnvironment -description "Builds the tools XsdGen
402 403 $currentOutDir = "$buildBase\$_\"
403 404 $solutions | % {
404 405 $solutionFile = $_.FullName
405   - exec { &$script:msBuild $solutionFile /p:OutDir="$currentOutDir" }
  406 + exec { &$script:msBuild $solutionFile /p:OutDir="$currentOutDir" /p:Configuration=$buildConfiguration}
406 407 }
407 408 }
408 409
2  readme.txt
@@ -19,7 +19,7 @@ http://www.nservicebus.com/EULA.aspx
19 19 ============
20 20
21 21 The following web page contains information about how to build NServiceBus form source files:
22   -http://nservicebus.com/BuildingNServiceBusFromSource.aspxIn order to build the source, run the build.ps1 powershell script.
  22 +http://nservicebus.com/BuildingNServiceBusFromSource.aspx In order to build the source, run the build.ps1 powershell script.
23 23
24 24 You'll find the built assemblies in /build/binaries.
25 25

0 comments on commit a27d338

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