-
Notifications
You must be signed in to change notification settings - Fork 40
/
Version.targets
39 lines (35 loc) · 1.89 KB
/
Version.targets
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
28
29
30
31
32
33
34
35
36
37
38
39
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(SolutionDir)\VersionNumber.targets" />
<Import Project="$(SolutionDir)\Tools\MSBuild\MSBuild.Community.Tasks.Targets" Condition="Exists('$(SolutionDir)\Tools\MSBuild\MSBuild.Community.Tasks.Targets')" />
<Target Name="SetAssemblyVersion">
<Message Text="Building Package" Importance="high" />
<PropertyGroup Condition="$(VersionPreRelease)==''">
<VersionTxt>$(SemanticVersionText).$REVNUM$</VersionTxt>
<SemanticVersionText>$(VersionTxt)</SemanticVersionText>
</PropertyGroup>
<PropertyGroup Condition="$(VersionPreRelease)!=''">
<VersionTxt>$(SemanticVersionText).$REVNUM$-$(VersionPreRelease)</VersionTxt>
<SemanticVersionText>$(SemanticVersionText).$REVNUM$</SemanticVersionText>
</PropertyGroup>
<PropertyGroup>
<TradeMarkText>$UTCDATE$ (Version $(VersionTxt))</TradeMarkText>
<CopyRightYear>$([System.DateTime]::Now.ToString("yyyy"))</CopyRightYear>
</PropertyGroup>
<Message Importance="high" Text="-Version $(VersionTxt)" />
<AssemblyInfo CodeLanguage="VB"
OutputFile="My Project\AssemblyInfo.template.vb"
AssemblyTitle="$(AssemblyInfoTitle)"
AssemblyDescription="$(AssemblyInfoDescription)"
AssemblyCompany="EveHQ Development Team"
AssemblyProduct="EveHQ"
AssemblyCopyright="� EveHQ Development Team 2005-$(CopyRightYear)"
AssemblyFileVersion="$(VersionTxt)"
AssemblyVersion="$(SemanticVersionText)"
AssemblyConfiguration="$(Configuration)"
AssemblyTrademark="$(TradeMarkText)"
CLSCompliant="False"
ComVisible="False"
Guid="$(AssemblyInfoGUID)"
/>
</Target>
</Project>