Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (44 sloc) 2.791 kb
<?xml version="1.0"?>
<Project DefaultTargets="Default" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask AssemblyFile="tools\xunit.runner.msbuild.dll" TaskName="Xunit.Runner.MSBuild.xunit" />
<PropertyGroup>
<Configuration>Release</Configuration>
</PropertyGroup>
<Target Name="Default" DependsOnTargets="Test;NugetPack"></Target>
<Target Name="Build">
<ItemGroup>
<ProjectToBuild Include="src\Cassette.Web\Cassette.Web.csproj"/>
<ProjectToBuild Include="src\Cassette.Views\Cassette.Views.csproj"/>
<ProjectToBuild Include="src\Cassette.MSBuild\Cassette.MSBuild.csproj"/>
<ProjectToBuild Include="src\Cassette.Web.Jasmine\Cassette.Web.Jasmine.csproj"/>
<ProjectToBuild Include="src\Cassette.UnitTests\Cassette.UnitTests.csproj"/>
<ProjectToBuild Include="src\Cassette.IntegrationTests\Cassette.IntegrationTests.csproj"/>
</ItemGroup>
<MSBuild Projects="@(ProjectToBuild)" Targets="Build" Properties="Configuration=$(Configuration)"/>
</Target>
<Target Name="Test" DependsOnTargets="Build">
<xunit Assembly="src\Cassette.UnitTests\bin\$(Configuration)\Cassette.UnitTests.dll" />
<xunit Assembly="src\Cassette.IntegrationTests\bin\$(Configuration)\Cassette.IntegrationTests.dll" />
</Target>
<Target Name="NugetPack" DependsOnTargets="Build">
<ItemGroup>
<ProjectToNugetPack Include="src\Cassette\Cassette.csproj"/>
<ProjectToNugetPack Include="src\Cassette.Views\Cassette.Views.csproj"/>
<ProjectToNugetPack Include="src\Cassette.Web\Cassette.Web.csproj"/>
<ProjectToNugetPack Include="src\Cassette.Web.Jasmine\Cassette.Web.Jasmine.csproj"/>
</ItemGroup>
<PropertyGroup>
<OutputDir>build\nuget\</OutputDir>
</PropertyGroup>
<MakeDir Directories="$(OutputDir)"/>
<Exec Command="nuget pack -Build %(ProjectToNugetPack.Identity) -Symbols -OutputDirectory $(OutputDir) -Prop Configuration=$(Configuration)"/>
<!-- The Cassette.MSBuild package is slightly different (-Tool, no symbols and -NoPackageAnalysis to avoid warning about DLLs in the Tools directory). -->
<Exec Command="nuget pack -Build src\Cassette.MSBuild\Cassette.MSBuild.csproj -Tool -OutputDirectory $(OutputDir) -Prop Configuration=$(Configuration) -NoPackageAnalysis"/>
</Target>
<Target Name="NugetPush" DependsOnTargets="NugetPack">
<ItemGroup>
<Packages Include="build\nuget\*.nupkg" Exclude="build\nuget\*.symbols.nupkg"/>
</ItemGroup>
<Exec Command="nuget push %(Packages.Identity)" />
</Target>
</Project>
Jump to Line
Something went wrong with that request. Please try again.