forked from MakoLab/RomanticWeb
-
Notifications
You must be signed in to change notification settings - Fork 4
/
after.RomanticWeb.sln.targets
21 lines (18 loc) · 1.1 KB
/
after.RomanticWeb.sln.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(TEAMCITY_BUILD_PROPERTIES_FILE)' != ''">
<TeamCityBuild>true</TeamCityBuild>
</PropertyGroup>
<UsingTask AssemblyFile="$(MSBuildProjectDirectory)\FileVersionExtractor\bin\FileVersionExtractor.dll"
TaskName="GetAssemblyFileVersion"/>
<Target Name="Update TeamCity Version" AfterTargets="Build">
<GetAssemblyFileVersion FilePathAssemblyInfo="$(MSBuildProjectDirectory)\RomanticWeb\Properties\VersionAssemblyInfo.cs">
<Output TaskParameter="AssemblyFileVersion" PropertyName="AssemblyFileVersion" />
</GetAssemblyFileVersion>
<Message Condition="$(TeamCityBuild) == 'true'" Text="##teamcity[buildNumber '$(AssemblyFileVersion)']" />
</Target>
<Target Name="GitHubLink" AfterTargets="Build">
<Exec Command='"$(MSBuildProjectDirectory)\Tools\GitHubLink.exe" "$(MSBuildProjectDirectory)" -u https://github.com/alien-mcl/RomanticWeb'
ContinueOnError="true" IgnoreExitCode="true"></Exec>
</Target>
</Project>