Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated build script and project files to handle 3.5/4.0 a bit cleane…

…r. No longer has issues with VS open at the same time the script is being run. Removed files added from previous build script problems...
  • Loading branch information...
commit 4d00b3a48dce075ed5c89dd9c272ee4ac714fc89 1 parent f9da8b4
@CoreyKaylor CoreyKaylor authored
Showing with 188 additions and 60,408 deletions.
  1. +11 −8 Rhino.ServiceBus.Autofac/Rhino.ServiceBus.Autofac.csproj
  2. +12 −9 Rhino.ServiceBus.Castle/Rhino.ServiceBus.Castle.csproj
  3. +4 −1 Rhino.ServiceBus.Host/Rhino.ServiceBus.Host.csproj
  4. +13 −10 Rhino.ServiceBus.StructureMap/Rhino.ServiceBus.StructureMap.csproj
  5. +2 −2 Rhino.ServiceBus.Tests/CanSendMsgsFromOneWayBusUsingRhinoQueues.cs
  6. +16 −10 Rhino.ServiceBus.Tests/Rhino.ServiceBus.Tests.csproj
  7. +5 −2 Rhino.ServiceBus.Unity/Rhino.ServiceBus.Unity.csproj
  8. BIN  Rhino.ServiceBus/Castle.Core.dll
  9. BIN  Rhino.ServiceBus/Castle.Core.pdb
  10. +0 −4,927 Rhino.ServiceBus/Castle.Core.xml
  11. BIN  Rhino.ServiceBus/Castle.Windsor.dll
  12. BIN  Rhino.ServiceBus/Castle.Windsor.pdb
  13. +0 −7,746 Rhino.ServiceBus/Castle.Windsor.xml
  14. BIN  Rhino.ServiceBus/Esent.Interop.dll
  15. BIN  Rhino.ServiceBus/Esent.Interop.pdb
  16. +0 −15,558 Rhino.ServiceBus/Esent.Interop.xml
  17. BIN  Rhino.ServiceBus/Rhino.PersistentHashTable.dll
  18. BIN  Rhino.ServiceBus/Rhino.PersistentHashTable.pdb
  19. BIN  Rhino.ServiceBus/Rhino.Queues.dll
  20. BIN  Rhino.ServiceBus/Rhino.Queues.pdb
  21. +8 −5 Rhino.ServiceBus/Rhino.ServiceBus.csproj
  22. BIN  Rhino.ServiceBus/Wintellect.Threading.dll
  23. +0 −3,330 Rhino.ServiceBus/Wintellect.Threading.xml
  24. BIN  Rhino.ServiceBus/log4net.dll
  25. +0 −28,655 Rhino.ServiceBus/log4net.xml
  26. +6 −3 Samples/Starbucks.Tests/Starbucks.Tests.csproj
  27. +7 −4 Samples/Starbucks/Starbucks.csproj
  28. BIN  Tools/7za.exe
  29. BIN  Tools/zip.exe
  30. +0 −125 build.ps1
  31. +104 −13 default.ps1
View
19 Rhino.ServiceBus.Autofac/Rhino.ServiceBus.Autofac.csproj
@@ -33,12 +33,15 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
+ <PropertyGroup Condition=" '$(LibDir)' == '' ">
+ <LibDir>..\SharedLibs\4.0\</LibDir>
+ </PropertyGroup>
<ItemGroup>
<Reference Include="Autofac">
- <HintPath>..\SharedLibs\build\Autofac.dll</HintPath>
+ <HintPath>$(LibDir)Autofac.dll</HintPath>
</Reference>
<Reference Include="Rhino.Queues, Version=1.2.0.0, Culture=neutral, PublicKeyToken=0b3305902db7183f, processorArchitecture=MSIL">
- <HintPath>..\SharedLibs\build\Rhino.Queues.dll</HintPath>
+ <HintPath>$(LibDir)Rhino.Queues.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
@@ -64,11 +67,11 @@
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
-->
</Project>
View
21 Rhino.ServiceBus.Castle/Rhino.ServiceBus.Castle.csproj
@@ -34,15 +34,18 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
+ <PropertyGroup Condition=" '$(LibDir)' == '' ">
+ <LibDir>..\SharedLibs\4.0\</LibDir>
+ </PropertyGroup>
<ItemGroup>
<Reference Include="Castle.Core">
- <HintPath>..\SharedLibs\build\Castle.Core.dll</HintPath>
+ <HintPath>$(LibDir)Castle.Core.dll</HintPath>
</Reference>
<Reference Include="Castle.Windsor">
- <HintPath>..\SharedLibs\build\Castle.Windsor.dll</HintPath>
+ <HintPath>$(LibDir)Castle.Windsor.dll</HintPath>
</Reference>
<Reference Include="Rhino.Queues">
- <HintPath>..\SharedLibs\build\Rhino.Queues.dll</HintPath>
+ <HintPath>$(LibDir)Rhino.Queues.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
@@ -68,11 +71,11 @@
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
-->
</Project>
View
5 Rhino.ServiceBus.Host/Rhino.ServiceBus.Host.csproj
@@ -33,9 +33,12 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
+ <PropertyGroup Condition=" '$(LibDir)' == '' ">
+ <LibDir>..\SharedLibs\4.0\</LibDir>
+ </PropertyGroup>
<ItemGroup>
<Reference Include="log4net">
- <HintPath>..\SharedLibs\build\log4net.dll</HintPath>
+ <HintPath>..\SharedLibs\log4net.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration.Install" />
View
23 Rhino.ServiceBus.StructureMap/Rhino.ServiceBus.StructureMap.csproj
@@ -34,12 +34,15 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
+ <PropertyGroup Condition=" '$(LibDir)' == '' ">
+ <LibDir>..\SharedLibs\4.0\</LibDir>
+ </PropertyGroup>
<ItemGroup>
- <Reference Include="Rhino.Queues, Version=1.2.0.0, Culture=neutral, PublicKeyToken=0b3305902db7183f, processorArchitecture=MSIL">
- <HintPath>..\SharedLibs\build\Rhino.Queues.dll</HintPath>
+ <Reference Include="Rhino.Queues">
+ <HintPath>$(LibDir)Rhino.Queues.dll</HintPath>
</Reference>
- <Reference Include="StructureMap, Version=2.6.2.0, Culture=neutral, PublicKeyToken=e60ad81abae3c223, processorArchitecture=MSIL">
- <HintPath>..\SharedLibs\build\StructureMap.dll</HintPath>
+ <Reference Include="StructureMap">
+ <HintPath>..\SharedLibs\StructureMap.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
@@ -67,11 +70,11 @@
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
-->
</Project>
View
4 Rhino.ServiceBus.Tests/CanSendMsgsFromOneWayBusUsingRhinoQueues.cs
@@ -55,7 +55,7 @@ public void SendMessageToRemoteBus()
{
oneWay.Send("hello there, one way");
- StringConsumer.Event.WaitOne();
+ StringConsumer.Event.WaitOne(TimeSpan.FromSeconds(3));
}
Assert.Equal("hello there, one way", StringConsumer.Value);
@@ -77,7 +77,7 @@ public void SendMessageToRemoteBusFromConfigDrivenOneWayBus()
.Configure();
var oneway = c.Resolve<IOnewayBus>();
oneway.Send("hello there, one way");
- StringConsumer.Event.WaitOne();
+ StringConsumer.Event.WaitOne(TimeSpan.FromSeconds(3));
Assert.Equal("hello there, one way", StringConsumer.Value);
}
View
26 Rhino.ServiceBus.Tests/Rhino.ServiceBus.Tests.csproj
@@ -33,18 +33,21 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
+ <PropertyGroup Condition=" '$(LibDir)' == '' ">
+ <LibDir>..\SharedLibs\4.0\</LibDir>
+ </PropertyGroup>
<ItemGroup>
<Reference Include="Autofac">
- <HintPath>..\SharedLibs\build\Autofac.dll</HintPath>
+ <HintPath>$(LibDir)Autofac.dll</HintPath>
</Reference>
<Reference Include="Castle.Core">
- <HintPath>..\SharedLibs\build\Castle.Core.dll</HintPath>
+ <HintPath>$(LibDir)Castle.Core.dll</HintPath>
</Reference>
<Reference Include="Castle.Windsor">
- <HintPath>..\SharedLibs\build\Castle.Windsor.dll</HintPath>
+ <HintPath>$(LibDir)Castle.Windsor.dll</HintPath>
</Reference>
<Reference Include="log4net">
- <HintPath>..\SharedLibs\build\log4net.dll</HintPath>
+ <HintPath>..\SharedLibs\log4net.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Practices.ServiceLocation">
<HintPath>..\SharedLibs\Microsoft.Practices.ServiceLocation.dll</HintPath>
@@ -62,16 +65,16 @@
<HintPath>..\SharedLibs\Microsoft.Practices.Unity.Interception.configuration.dll</HintPath>
</Reference>
<Reference Include="Rhino.DistributedHashTable">
- <HintPath>..\SharedLibs\build\Rhino.DistributedHashTable.dll</HintPath>
+ <HintPath>..\SharedLibs\Rhino.DistributedHashTable.dll</HintPath>
</Reference>
<Reference Include="Rhino.Mocks">
- <HintPath>..\SharedLibs\build\Rhino.Mocks.dll</HintPath>
+ <HintPath>..\SharedLibs\Rhino.Mocks.dll</HintPath>
</Reference>
<Reference Include="Rhino.PersistentHashTable">
- <HintPath>..\SharedLibs\build\Rhino.PersistentHashTable.dll</HintPath>
+ <HintPath>$(LibDir)Rhino.PersistentHashTable.dll</HintPath>
</Reference>
<Reference Include="Rhino.Queues">
- <HintPath>..\SharedLibs\build\Rhino.Queues.dll</HintPath>
+ <HintPath>$(LibDir)Rhino.Queues.dll</HintPath>
</Reference>
<Reference Include="StructureMap">
<HintPath>..\SharedLibs\StructureMap.dll</HintPath>
@@ -91,11 +94,14 @@
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xml" />
+ <Reference Include="Wintellect.Threading">
+ <HintPath>..\SharedLibs\Wintellect.Threading.dll</HintPath>
+ </Reference>
<Reference Include="xunit">
- <HintPath>..\SharedLibs\build\xunit.dll</HintPath>
+ <HintPath>..\SharedLibs\xunit.dll</HintPath>
</Reference>
<Reference Include="xunit.extensions">
- <HintPath>..\SharedLibs\build\xunit.extensions.dll</HintPath>
+ <HintPath>..\SharedLibs\xunit.extensions.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
View
7 Rhino.ServiceBus.Unity/Rhino.ServiceBus.Unity.csproj
@@ -37,6 +37,9 @@
<PropertyGroup>
<AssemblyOriginatorKeyFile>..\ayende-open-source.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
+ <PropertyGroup Condition=" '$(LibDir)' == '' ">
+ <LibDir>..\SharedLibs\4.0\</LibDir>
+ </PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Practices.ServiceLocation">
<HintPath>..\SharedLibs\Microsoft.Practices.ServiceLocation.dll</HintPath>
@@ -53,9 +56,9 @@
<Reference Include="Microsoft.Practices.Unity.Interception.configuration">
<HintPath>..\SharedLibs\Microsoft.Practices.Unity.Interception.configuration.dll</HintPath>
</Reference>
- <Reference Include="Rhino.Queues, Version=1.2.0.0, Culture=neutral, PublicKeyToken=0b3305902db7183f, processorArchitecture=MSIL">
+ <Reference Include="Rhino.Queues">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\SharedLibs\build\Rhino.Queues.dll</HintPath>
+ <HintPath>$(LibDir)Rhino.Queues.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
View
BIN  Rhino.ServiceBus/Castle.Core.dll
Binary file not shown
View
BIN  Rhino.ServiceBus/Castle.Core.pdb
Binary file not shown
View
4,927 Rhino.ServiceBus/Castle.Core.xml
0 additions, 4,927 deletions not shown
View
BIN  Rhino.ServiceBus/Castle.Windsor.dll
Binary file not shown
View
BIN  Rhino.ServiceBus/Castle.Windsor.pdb
Binary file not shown
View
7,746 Rhino.ServiceBus/Castle.Windsor.xml
0 additions, 7,746 deletions not shown
View
BIN  Rhino.ServiceBus/Esent.Interop.dll
Binary file not shown
View
BIN  Rhino.ServiceBus/Esent.Interop.pdb
Binary file not shown
View
15,558 Rhino.ServiceBus/Esent.Interop.xml
0 additions, 15,558 deletions not shown
View
BIN  Rhino.ServiceBus/Rhino.PersistentHashTable.dll
Binary file not shown
View
BIN  Rhino.ServiceBus/Rhino.PersistentHashTable.pdb
Binary file not shown
View
BIN  Rhino.ServiceBus/Rhino.Queues.dll
Binary file not shown
View
BIN  Rhino.ServiceBus/Rhino.Queues.pdb
Binary file not shown
View
13 Rhino.ServiceBus/Rhino.ServiceBus.csproj
@@ -35,21 +35,24 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
+ <PropertyGroup Condition=" '$(LibDir)' == '' ">
+ <LibDir>..\SharedLibs\4.0\</LibDir>
+ </PropertyGroup>
<ItemGroup>
<Reference Include="Castle.Core">
- <HintPath>..\SharedLibs\build\Castle.Core.dll</HintPath>
+ <HintPath>$(LibDir)Castle.Core.dll</HintPath>
</Reference>
<Reference Include="Esent.Interop">
- <HintPath>..\SharedLibs\build\Esent.Interop.dll</HintPath>
+ <HintPath>..\SharedLibs\Esent.Interop.dll</HintPath>
</Reference>
<Reference Include="log4net">
- <HintPath>..\SharedLibs\build\log4net.dll</HintPath>
+ <HintPath>..\SharedLibs\log4net.dll</HintPath>
</Reference>
<Reference Include="Rhino.PersistentHashTable">
- <HintPath>..\SharedLibs\build\Rhino.PersistentHashTable.dll</HintPath>
+ <HintPath>$(LibDir)Rhino.PersistentHashTable.dll</HintPath>
</Reference>
<Reference Include="Rhino.Queues">
- <HintPath>..\SharedLibs\build\Rhino.Queues.dll</HintPath>
+ <HintPath>$(LibDir)Rhino.Queues.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
View
BIN  Rhino.ServiceBus/Wintellect.Threading.dll
Binary file not shown
View
3,330 Rhino.ServiceBus/Wintellect.Threading.xml
0 additions, 3,330 deletions not shown
View
BIN  Rhino.ServiceBus/log4net.dll
Binary file not shown
View
28,655 Rhino.ServiceBus/log4net.xml
0 additions, 28,655 deletions not shown
View
9 Samples/Starbucks.Tests/Starbucks.Tests.csproj
@@ -31,12 +31,15 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
+ <PropertyGroup Condition=" '$(LibDir)' == '' ">
+ <LibDir>..\SharedLibs\4.0\</LibDir>
+ </PropertyGroup>
<ItemGroup>
<Reference Include="Castle.Core">
- <HintPath>..\..\SharedLibs\build\Castle.Core.dll</HintPath>
+ <HintPath>$(LibDir)Castle.Core.dll</HintPath>
</Reference>
<Reference Include="Castle.Windsor">
- <HintPath>..\..\SharedLibs\build\Castle.Windsor.dll</HintPath>
+ <HintPath>$(LibDir)Castle.Windsor.dll</HintPath>
</Reference>
<Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821, processorArchitecture=MSIL">
<HintPath>..\..\SharedLibs\log4net.dll</HintPath>
@@ -54,7 +57,7 @@
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="xunit">
- <HintPath>..\..\SharedLibs\build\xunit.dll</HintPath>
+ <HintPath>..\..\SharedLibs\xunit.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
View
11 Samples/Starbucks/Starbucks.csproj
@@ -31,18 +31,21 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
+ <PropertyGroup Condition=" '$(LibDir)' == '' ">
+ <LibDir>..\..\SharedLibs\4.0\</LibDir>
+ </PropertyGroup>
<ItemGroup>
<Reference Include="Castle.Core">
- <HintPath>..\..\SharedLibs\build\Castle.Core.dll</HintPath>
+ <HintPath>$(LibDir)Castle.Core.dll</HintPath>
</Reference>
<Reference Include="Castle.Windsor">
- <HintPath>..\..\SharedLibs\build\Castle.Windsor.dll</HintPath>
+ <HintPath>$(LibDir)Castle.Windsor.dll</HintPath>
</Reference>
<Reference Include="log4net">
- <HintPath>..\..\SharedLibs\build\log4net.dll</HintPath>
+ <HintPath>..\..\SharedLibs\log4net.dll</HintPath>
</Reference>
<Reference Include="Rhino.Queues">
- <HintPath>..\..\SharedLibs\build\Rhino.Queues.dll</HintPath>
+ <HintPath>$(LibDir)Rhino.Queues.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
View
BIN  Tools/7za.exe
Binary file not shown
View
BIN  Tools/zip.exe
Binary file not shown
View
125 build.ps1
@@ -1,125 +0,0 @@
-properties {
- $base_dir = resolve-path .
- $lib_dir = "$base_dir\SharedLibs"
- $lib_for_build_dir = "$lib_dir\build\"
- $target_framework_version = "3.5"
- $sln_file = "$base_dir\Rhino.ServiceBus.sln"
- $version = "2.0.0.0"
- $tools_dir = "$base_dir\Tools"
- $config = "Release"
- $run_tests = "false"
-}
-
-$framework = '4.0'
-
-include .\psake_ext.ps1
-
-task default -depends Release
-
-task SetDerivedProperties {
- $script:build_dir = "$base_dir\build\$target_framework_version\"
- $script:buildartifacts_dir = $build_dir
- $script:release_dir = "$base_dir\Release\$target_framework_version"
- $script:build_properties = "OutDir=$buildartifacts_dir;Configuration=$config;TargetFrameworkVersion=V$target_framework_version"
-}
-
-task Clean -depends SetDerivedProperties {
- remove-item -force -recurse $buildartifacts_dir -ErrorAction SilentlyContinue
- remove-item -force -recurse $release_dir -ErrorAction SilentlyContinue
- remove-item -force -recurse $lib_for_build_dir -ErrorAction SilentlyContinue
-}
-
-task Init -depends Clean {
- $infos = (
- "$base_dir\Rhino.ServiceBus\Properties\AssemblyInfo.cs",
- "$base_dir\Rhino.ServiceBus.Tests\Properties\AssemblyInfo.cs",
- "$base_dir\Rhino.ServiceBus.Host\Properties\AssemblyInfo.cs",
- "$base_dir\Rhino.ServiceBus.Castle\Properties\AssemblyInfo.cs",
- "$base_dir\Rhino.ServiceBus.StructureMap\Properties\AssemblyInfo.cs",
- "$base_dir\Rhino.ServiceBus.Autofac\Properties\AssemblyInfo.cs",
- "$base_dir\Rhino.ServiceBus.Unity\Properties\AssemblyInfo.cs"
- );
-
- $infos | foreach { Generate-Assembly-Info `
- -file $_ `
- -title "Rhino Service Bus $version" `
- -description "Developer friendly service bus for .NET" `
- -company "Hibernating Rhinos" `
- -product "Rhino Service Bus $version" `
- -version $version `
- -copyright "Hibernating Rhinos & Ayende Rahien 2004 - 2009" `
- }
-
- new-item $release_dir -itemType directory
- new-item $buildartifacts_dir -itemType directory
- new-item $lib_for_build_dir -itemType directory -force
- get-childitem "$lib_dir\*.*" -exclude "3.5;4.0" | copy-item -destination {join-path $lib_for_build_dir $_.Name}
- get-childitem "$lib_dir\$target_framework_version\*.*" | copy-item -destination {join-path $lib_for_build_dir $_.Name}
-}
-
-task Compile -depends Init {
- msbuild $sln_file /p:$build_properties
-}
-
-task Test -depends Compile {
- if($run_tests -eq "false")
- {
- return
- }
- $test_runner = "$tools_dir\xUnit\"
- $old = pwd
- cd $build_dir
- & $tools_dir\xUnit\xunit.console.clr4.exe "$build_dir\Rhino.ServiceBus.Tests.dll" /noshadow
- cd $old
-}
-
-task Release -depends Test{
-
- & $tools_dir\zip.exe -9 -A -j `
- $release_dir\Rhino.ServiceBus.zip `
- $build_dir\Castle.Core.dll `
- $build_dir\Castle.Core.pdb `
- $build_dir\Castle.Core.xml `
- $build_dir\Castle.Windsor.dll `
- $build_dir\Castle.Windsor.pdb `
- $build_dir\Castle.Windsor.xml `
- $build_dir\StructureMap.dll `
- $build_dir\Esent.Interop.dll `
- $build_dir\Esent.Interop.pdb `
- $build_dir\Esent.Interop.xml `
- $build_dir\log4net.dll `
- $build_dir\log4net.xml `
- $build_dir\Rhino.PersistentHashTable.dll `
- $build_dir\Rhino.PersistentHashTable.pdb `
- $build_dir\Rhino.Queues.dll `
- $build_dir\Rhino.Queues.pdb `
- $build_dir\Rhino.ServiceBus.dll `
- $build_dir\Rhino.ServiceBus.pdb `
- $build_dir\Rhino.ServiceBus.xml `
- $build_dir\Rhino.ServiceBus.Castle.xml `
- $build_dir\Rhino.ServiceBus.Castle.dll `
- $build_dir\Rhino.ServiceBus.Castle.pdb `
- $build_dir\Rhino.ServiceBus.StructureMap.xml `
- $build_dir\StructureMap.dll `
- $build_dir\Rhino.ServiceBus.StructureMap.dll `
- $build_dir\Rhino.ServiceBus.StructureMap.pdb `
- $build_dir\Autofac.dll `
- $build_dir\Rhino.ServiceBus.Autofac.xml `
- $build_dir\Rhino.ServiceBus.Autofac.dll `
- $build_dir\Rhino.ServiceBus.Autofac.pdb `
- $build_dir\Microsoft.Practices.Unity.dll `
- $build_dir\Microsoft.Practices.Unity.Interception.dll `
- $build_dir\Rhino.ServiceBus.Unity.xml `
- $build_dir\Rhino.ServiceBus.Unity.dll `
- $build_dir\Rhino.ServiceBus.Unity.pdb `
- $build_dir\Rhino.ServiceBus.Host.exe `
- $build_dir\Rhino.ServiceBus.Host.pdb `
- $build_dir\Wintellect.Threading.dll `
- $build_dir\Wintellect.Threading.xml `
- license.txt `
- acknowledgements.txt
- if ($lastExitCode -ne 0) {
- throw "Error: Failed to execute ZIP command"
- }
-}
-
View
117 default.ps1
@@ -1,23 +1,114 @@
-properties {
- $config = "Debug"
+properties {
+ $base_dir = resolve-path .
+ $build_dir = "$base_dir\build"
+ $40_build_dir = "$build_dir\4.0\"
+ $35_build_dir = "$build_dir\3.5\"
+ $lib_dir = "$base_dir\SharedLibs"
+ $35_lib_dir = "$base_dir\SharedLibs\3.5\"
+ $release_dir = "$base_dir\Release"
+ $sln_file = "$base_dir\Rhino.ServiceBus.sln"
+ $version = "2.0.0.0"
+ $tools_dir = "$base_dir\Tools"
+ $config = "Release"
+ $run_tests = "true"
}
$framework = '4.0'
include .\psake_ext.ps1
-task default -depends ReleaseNET35, ReleaseNET40
+task default -depends Release
-task ReleaseNET40 {
- Invoke-Psake .\build.ps1 -properties @{
- "target_framework_version"="4.0";
- "config"="$config"
- }
-}
+task Clean {
+ remove-item -force -recurse $build_dir -ErrorAction SilentlyContinue
+ remove-item -force -recurse $release_dir -ErrorAction SilentlyContinue
+}
-task ReleaseNET35 {
- Invoke-Psake .\build.ps1 -properties @{
- "run_tests"="true";
- "config"="$config"
+task Init -depends Clean {
+ $infos = (
+ "$base_dir\Rhino.ServiceBus\Properties\AssemblyInfo.cs",
+ "$base_dir\Rhino.ServiceBus.Tests\Properties\AssemblyInfo.cs",
+ "$base_dir\Rhino.ServiceBus.Host\Properties\AssemblyInfo.cs",
+ "$base_dir\Rhino.ServiceBus.Castle\Properties\AssemblyInfo.cs",
+ "$base_dir\Rhino.ServiceBus.StructureMap\Properties\AssemblyInfo.cs",
+ "$base_dir\Rhino.ServiceBus.Autofac\Properties\AssemblyInfo.cs",
+ "$base_dir\Rhino.ServiceBus.Unity\Properties\AssemblyInfo.cs"
+ );
+
+ $infos | foreach { Generate-Assembly-Info `
+ -file $_ `
+ -title "Rhino Service Bus $version" `
+ -description "Developer friendly service bus for .NET" `
+ -company "Hibernating Rhinos" `
+ -product "Rhino Service Bus $version" `
+ -version $version `
+ -copyright "Hibernating Rhinos & Ayende Rahien 2004 - 2009" `
}
+
+ new-item $release_dir -itemType directory
+ new-item $build_dir -itemType directory
+}
+
+task Compile40 -depends Init {
+ msbuild $sln_file /p:"OutDir=$40_build_dir;Configuration=$config;TargetFrameworkVersion=V4.0"
+}
+
+task Compile35 -depends Init {
+ msbuild $sln_file /p:"OutDir=$35_build_dir;Configuration=$config;TargetFrameworkVersion=V3.5;LibDir=$35_lib_dir"
+}
+
+task Test -depends Compile35, Compile40 {
+ if($run_tests -eq "false")
+ {
+ return
+ }
+ $old = pwd
+ cd $build_dir
+ & $tools_dir\xUnit\xunit.console.clr4.exe "$build_dir\3.5\Rhino.ServiceBus.Tests.dll" /noshadow
+ cd $old
}
+
+task Release -depends Test {
+
+ cd $build_dir
+ & $tools_dir\7za.exe a $release_dir\Rhino.ServiceBus.zip `
+ *\Castle.Core.dll `
+ *\Castle.Core.pdb `
+ *\Castle.Core.xml `
+ *\Castle.Windsor.dll `
+ *\Castle.Windsor.pdb `
+ *\Castle.Windsor.xml `
+ *\Esent.Interop.dll `
+ *\Esent.Interop.pdb `
+ *\Esent.Interop.xml `
+ *\log4net.dll `
+ *\log4net.xml `
+ *\Rhino.PersistentHashTable.dll `
+ *\Rhino.PersistentHashTable.pdb `
+ *\Rhino.Queues.dll `
+ *\Rhino.Queues.pdb `
+ *\Rhino.ServiceBus.dll `
+ *\Rhino.ServiceBus.pdb `
+ *\Rhino.ServiceBus.Castle.dll `
+ *\Rhino.ServiceBus.Castle.pdb `
+ *\StructureMap.dll `
+ *\Rhino.ServiceBus.StructureMap.dll `
+ *\Rhino.ServiceBus.StructureMap.pdb `
+ *\Autofac.dll `
+ *\Rhino.ServiceBus.Autofac.dll `
+ *\Rhino.ServiceBus.Autofac.pdb `
+ *\Microsoft.Practices.Unity.dll `
+ *\Microsoft.Practices.Unity.Interception.dll `
+ *\Rhino.ServiceBus.Unity.dll `
+ *\Rhino.ServiceBus.Unity.pdb `
+ *\Rhino.ServiceBus.Host.exe `
+ *\Rhino.ServiceBus.Host.pdb `
+ *\Wintellect.Threading.dll `
+ *\Wintellect.Threading.xml `
+ ..\license.txt `
+ ..\acknowledgements.txt
+ if ($lastExitCode -ne 0) {
+ throw "Error: Failed to execute ZIP command"
+ }
+}
+
Please sign in to comment.
Something went wrong with that request. Please try again.