forked from ua-parser/uap-csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.proj
29 lines (21 loc) · 1.27 KB
/
build.proj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<Project DefaultTargets="Compile"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<TheConfiguration>Release</TheConfiguration>
<ThePlatform>Any CPU</ThePlatform>
<PathToNUnitExecutable>"$(MSBuildProjectDirectory)/tools/nunit/nunit-console.exe"</PathToNUnitExecutable>
<PathToXUnitExecutable>"$(MSBuildProjectDirectory)/packages/xunit.runner.console.2.1.0/tools/xunit.console.exe"</PathToXUnitExecutable>
<PathToNuGetExecutable>"$(MSBuildProjectDirectory)/.nuget/nuget.exe"</PathToNuGetExecutable>
</PropertyGroup>
<Target Name="Compile">
<MSBuild Projects="UAParser.sln" Targets="Rebuild" Properties="Configuration=$(TheConfiguration);Platform=$(ThePlatform)" />
</Target>
<Target Name="RunTests" DependsOnTargets="Compile">
<Exec Command="$(PathToXUnitExecutable) UAParser.Tests\bin\$(TheConfiguration)\UAParser.Tests.dll" />
</Target>
<Target Name="CreateNuGet" DependsOnTargets="Compile;RunTests">
<Exec Command="$(PathToNuGetExecutable) pack UAParser.csproj -Properties Configuration=$(TheConfiguration)"
WorkingDirectory="UAParser"/>
</Target>
<Target Name="All" DependsOnTargets="CreateNuGet" />
</Project>