Skip to content

Instantly share code, notes, and snippets.

@jeremysimmons
Forked from dasMulli/build.proj
Created June 6, 2017 01:06
Show Gist options
  • Save jeremysimmons/e9874a1408101b8bfb1c4c17d544de51 to your computer and use it in GitHub Desktop.
Save jeremysimmons/e9874a1408101b8bfb1c4c17d544de51 to your computer and use it in GitHub Desktop.
Sample CI build definition using MSBuild
<Project>
<ItemGroup>
<Solution Include="*.sln" />
<PublishProject Include="XXX.Mvc\XXX.Mvc.csproj" />
<TestProject Include="**\*.Test*.*proj" Exclude="XXX.Tests.Shared\XXX.Tests.Shared.csproj" />
</ItemGroup>
<Target Name="Build">
<MSBuild Projects="@(Solution)" Targets="Restore" ContinueOnError="ErrorAndStop" UnloadProjectsOnCompletion="true" UseResultsCache="false" />
<MSBuild Projects="@(PublishProject)" Targets="Publish" Properties="Configuration=Release" ContinueOnError="ErrorAndContinue" />
<MSBuild Projects="@(TestProject)" Targets="VSTest" Properties="VSTestLogger=trx" ContinueOnError="ErrorAndContinue" />
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment