-
Notifications
You must be signed in to change notification settings - Fork 9
/
versioning.targets
18 lines (18 loc) · 1.05 KB
/
versioning.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!--
define solution version here or pass it as MSBuild parameter
(f.e. "... /p:PackageVersion="1.0.0.156" ...")
-->
<MajorVersion Condition="'$(MajorVersion)' == ''">1</MajorVersion>
<MinorVersion Condition="'$(MinorVersion)' == ''">1</MinorVersion>
<PatchVersion Condition="'$(PatchVersion)' == ''">0</PatchVersion>
<BuildNumber Condition="'$(BuildNumber)' == ''">0</BuildNumber>
<PackageVersion>$(MajorVersion).$(MinorVersion).$(PatchVersion)</PackageVersion>
<FullAssemblyVersion>$(MajorVersion).$(MinorVersion).0.0</FullAssemblyVersion>
<FullAssemblyFileVersion>$(PackageVersion).$(BuildNumber)</FullAssemblyFileVersion>
</PropertyGroup>
<Target Name="SetAssemblyVersion" BeforeTargets="BeforeBuild">
<MSBuild.ExtensionPack.Framework.AssemblyInfo AssemblyInfoFiles="Properties\AssemblyInfo.cs" AssemblyVersion="$(FullAssemblyVersion)" AssemblyFileVersion="$(FullAssemblyFileVersion)" />
</Target>
</Project>