Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added build script for the whole solution
- Loading branch information
Showing
8 changed files
with
221 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@echo off | ||
|
||
set target=%1 | ||
if "%target%" == "" ( | ||
set target=UnitTests | ||
) | ||
|
||
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild Build\build.msbuild /target:%target% /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,40 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Target Name="Build"> | ||
<MSBuild Projects="../src/ServiceStack.Interfaces/ServiceStack.Interfaces.csproj" Properties="Configuration=Release"/> | ||
<MSBuild Projects="../src/ServiceStack.Common/ServiceStack.Common.csproj" Properties="Configuration=Release"/> | ||
<MSBuild Projects="../src/ServiceStack/ServiceStack.csproj" Properties="Configuration=Release"/> | ||
</Target> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | ||
<PropertyGroup> | ||
<BuildSolutionDir>$(MSBuildProjectDirectory)/..</BuildSolutionDir> | ||
<Configuration Condition="$(Configuration) == ''">Release</Configuration> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<DoBuildSolutionsDependsOn> | ||
BeforeBuildSolutions; | ||
BuildSolutions | ||
</DoBuildSolutionsDependsOn> | ||
</PropertyGroup> | ||
|
||
<Target Name="Default" DependsOnTargets="$(DoBuildSolutionsDependsOn)" /> | ||
|
||
<Target Name="UnitTests" DependsOnTargets="$(DoBuildSolutionsDependsOn)"> | ||
<Exec Command="$(BuildSolutionDir)/lib/tests/nunit-console-x86.exe $(BuildSolutionDir)/tests/ServiceStack.Messaging.Tests/bin/$(Configuration)/ServiceStack.Messaging.Tests.dll" /> | ||
<Exec Command="$(BuildSolutionDir)/lib/tests/nunit-console-x86.exe $(BuildSolutionDir)/tests/ServiceStack.Common.Tests/bin/$(Configuration)/ServiceStack.Common.Tests.dll" /> | ||
<Exec Command="$(BuildSolutionDir)/lib/tests/nunit-console-x86.exe $(BuildSolutionDir)/tests/ServiceStack.Auth.Tests/bin/$(Configuration)/ServiceStack.Auth.Tests.dll" /> | ||
<Exec Command="$(BuildSolutionDir)/lib/tests/nunit-console-x86.exe $(BuildSolutionDir)/tests/ServiceStack.WebHostApp/bin/ServiceStack.WebHost.Endpoints.Tests.dll" /> | ||
</Target> | ||
|
||
<Target Name="Build"> | ||
<MSBuild Projects="../src/ServiceStack.Interfaces/ServiceStack.Interfaces.csproj" Properties="Configuration=$(Configuration)"/> | ||
<MSBuild Projects="../src/ServiceStack.Common/ServiceStack.Common.csproj" Properties="Configuration=$(Configuration)"/> | ||
<MSBuild Projects="../src/ServiceStack/ServiceStack.csproj" Properties="Configuration=$(Configuration)"/> | ||
</Target> | ||
|
||
<Target Name="BeforeBuildSolutions"> | ||
<Message Text="*****Before building solution*****" Importance="high"/> | ||
<!--<Copy SourceFiles="Test/ci.app.config" DestinationFiles="Test/app.config" />--> | ||
</Target> | ||
|
||
<Target Name="BuildSolutions"> | ||
<MSBuild Projects="$(BuildSolutionDir)/src/ServiceStack.sln" Targets="Build" | ||
Properties="Configuration=$(Configuration)" /> | ||
</Target> | ||
|
||
|
||
</Project> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<?xml version="1.0" encoding="Windows-1252"?> | ||
<configuration> | ||
<!-- | ||
Application settings for NUnit-console.exe. Do NOT put settings | ||
for use by your tests here. | ||
--> | ||
<appSettings> | ||
<!-- | ||
Specify the location to be used by .NET for the cache | ||
--> | ||
<add key="shadowfiles.path" value="%temp%\nunit20\ShadowCopyCache" /> | ||
</appSettings> | ||
|
||
<!-- Set the level for tracing NUnit itself --> | ||
<!-- 0=Off 1=Error 2=Warning 3=Info 4=Debug --> | ||
<system.diagnostics> | ||
<switches> | ||
<add name="NTrace" value="0" /> | ||
</switches> | ||
</system.diagnostics> | ||
|
||
<runtime> | ||
<!-- We need this so test exceptions don't crash NUnit --> | ||
<legacyUnhandledExceptionPolicy enabled="1" /> | ||
|
||
<!-- Look for addins in the addins directory for now --> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<probing privatePath="lib;addins"/> | ||
</assemblyBinding> | ||
|
||
<!-- | ||
The following <assemblyBinding> section allows running nunit under | ||
.NET 1.0 by redirecting assemblies. The appliesTo attribute | ||
causes the section to be ignored except under .NET 1.0 | ||
on a machine with only the .NET version 1.0 runtime installed. | ||
If application and its tests were built for .NET 1.1 you will | ||
also need to redirect system assemblies in the test config file, | ||
which controls loading of the tests. | ||
--> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" | ||
appliesTo="v1.0.3705"> | ||
|
||
<dependentAssembly> | ||
<assemblyIdentity name="System" | ||
publicKeyToken="b77a5c561934e089" | ||
culture="neutral"/> | ||
<bindingRedirect oldVersion="1.0.5000.0" | ||
newVersion="1.0.3300.0"/> | ||
</dependentAssembly> | ||
|
||
<dependentAssembly> | ||
<assemblyIdentity name="System.Data" | ||
publicKeyToken="b77a5c561934e089" | ||
culture="neutral"/> | ||
<bindingRedirect oldVersion="1.0.5000.0" | ||
newVersion="1.0.3300.0"/> | ||
</dependentAssembly> | ||
|
||
<dependentAssembly> | ||
<assemblyIdentity name="System.Drawing" | ||
publicKeyToken="b03f5f7f11d50a3a" | ||
culture="neutral"/> | ||
<bindingRedirect oldVersion="1.0.5000.0" | ||
newVersion="1.0.3300.0"/> | ||
</dependentAssembly> | ||
|
||
<dependentAssembly> | ||
<assemblyIdentity name="System.Windows.Forms" | ||
publicKeyToken="b77a5c561934e089" | ||
culture="neutral"/> | ||
<bindingRedirect oldVersion="1.0.5000.0" | ||
newVersion="1.0.3300.0"/> | ||
</dependentAssembly> | ||
|
||
<dependentAssembly> | ||
<assemblyIdentity name="System.Xml" | ||
publicKeyToken="b77a5c561934e089" | ||
culture="neutral"/> | ||
<bindingRedirect oldVersion="1.0.5000.0" | ||
newVersion="1.0.3300.0"/> | ||
</dependentAssembly> | ||
|
||
</assemblyBinding> | ||
|
||
</runtime> | ||
|
||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<?xml version="1.0" encoding="Windows-1252"?> | ||
<configuration> | ||
<!-- | ||
Application settings for NUnit-console.exe. Do NOT put settings | ||
for use by your tests here. | ||
--> | ||
<appSettings> | ||
<!-- | ||
Specify the location to be used by .NET for the cache | ||
--> | ||
<add key="shadowfiles.path" value="%temp%\nunit20\ShadowCopyCache" /> | ||
</appSettings> | ||
|
||
<!-- Set the level for tracing NUnit itself --> | ||
<!-- 0=Off 1=Error 2=Warning 3=Info 4=Debug --> | ||
<system.diagnostics> | ||
<switches> | ||
<add name="NTrace" value="0" /> | ||
</switches> | ||
</system.diagnostics> | ||
|
||
<runtime> | ||
<!-- We need this so test exceptions don't crash NUnit --> | ||
<legacyUnhandledExceptionPolicy enabled="1" /> | ||
|
||
<!-- Look for addins in the addins directory for now --> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<probing privatePath="lib;addins"/> | ||
</assemblyBinding> | ||
|
||
<!-- | ||
The following <assemblyBinding> section allows running nunit under | ||
.NET 1.0 by redirecting assemblies. The appliesTo attribute | ||
causes the section to be ignored except under .NET 1.0 | ||
on a machine with only the .NET version 1.0 runtime installed. | ||
If application and its tests were built for .NET 1.1 you will | ||
also need to redirect system assemblies in the test config file, | ||
which controls loading of the tests. | ||
--> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" | ||
appliesTo="v1.0.3705"> | ||
|
||
<dependentAssembly> | ||
<assemblyIdentity name="System" | ||
publicKeyToken="b77a5c561934e089" | ||
culture="neutral"/> | ||
<bindingRedirect oldVersion="1.0.5000.0" | ||
newVersion="1.0.3300.0"/> | ||
</dependentAssembly> | ||
|
||
<dependentAssembly> | ||
<assemblyIdentity name="System.Data" | ||
publicKeyToken="b77a5c561934e089" | ||
culture="neutral"/> | ||
<bindingRedirect oldVersion="1.0.5000.0" | ||
newVersion="1.0.3300.0"/> | ||
</dependentAssembly> | ||
|
||
<dependentAssembly> | ||
<assemblyIdentity name="System.Drawing" | ||
publicKeyToken="b03f5f7f11d50a3a" | ||
culture="neutral"/> | ||
<bindingRedirect oldVersion="1.0.5000.0" | ||
newVersion="1.0.3300.0"/> | ||
</dependentAssembly> | ||
|
||
<dependentAssembly> | ||
<assemblyIdentity name="System.Windows.Forms" | ||
publicKeyToken="b77a5c561934e089" | ||
culture="neutral"/> | ||
<bindingRedirect oldVersion="1.0.5000.0" | ||
newVersion="1.0.3300.0"/> | ||
</dependentAssembly> | ||
|
||
<dependentAssembly> | ||
<assemblyIdentity name="System.Xml" | ||
publicKeyToken="b77a5c561934e089" | ||
culture="neutral"/> | ||
<bindingRedirect oldVersion="1.0.5000.0" | ||
newVersion="1.0.3300.0"/> | ||
</dependentAssembly> | ||
|
||
</assemblyBinding> | ||
|
||
</runtime> | ||
|
||
</configuration> |
Binary file not shown.
Binary file not shown.
Binary file not shown.