-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.proj
27 lines (20 loc) · 1.08 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
<Project DefaultTargets="All"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<TheConfiguration>Release</TheConfiguration>
<ThePlatform>Any CPU</ThePlatform>
<PathToNUnitExecutable>"$(MSBuildProjectDirectory)/tools/nunit/nunit-console.exe"</PathToNUnitExecutable>
<PathToNuGetExecutable>"$(MSBuildProjectDirectory)/.nuget/nuget.exe"</PathToNuGetExecutable>
</PropertyGroup>
<Target Name="Compile">
<MSBuild Projects="HarvestDotNet.sln" Targets="Rebuild" Properties="Configuration=$(TheConfiguration);Platform=$(ThePlatform)" />
</Target>
<Target Name="RunTests">
<Exec Command="$(PathToNUnitExecutable) HarvestDotNet.Tests\bin\$(TheConfiguration)\HarvestDotNet.Tests.dll" />
</Target>
<Target Name="CreateNuGet" DependsOnTargets="Compile;RunTests">
<Exec Command="$(PathToNuGetExecutable) pack HarvestDotNet.csproj -Properties Configuration=$(TheConfiguration)"
WorkingDirectory="HarvestDotNet"/>
</Target>
<Target Name="All" DependsOnTargets="CreateNuGet" />
</Project>