-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.proj
18 lines (15 loc) · 979 Bytes
/
build.proj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Version Condition=" '$(Version)' == '' ">4.0.0-dev</Version>
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
<PackagesDirectory>packages</PackagesDirectory>
</PropertyGroup>
<Target Name="Build">
<MSBuild Projects="TeamCity.ServiceMessages.sln" BuildInParallel="true" Targets="Restore;Build" Properties="Configuration=$(Configuration);Version=$(Version)"/>
<Message Text="##teamcity[publishArtifacts 'TeamCity.ServiceMessages\bin\$(Configuration)\TeamCity.ServiceMessages.*.nupkg=>$(PackagesDirectory)']" />
</Target>
<Target Name="Test" DependsOnTargets="Build">
<Exec IgnoreExitCode="true" Command="dotnet test TeamCity.ServiceMessages.Tests\TeamCity.ServiceMessages.Tests.csproj"/>
</Target>
</Project>