Skip to content
Snippets Groups Projects
Commit a4c27589 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Provide assembly version info from build.

parent fea4b633
No related branches found
No related tags found
No related merge requests found
......@@ -66,4 +66,7 @@
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>PowerShell -NoProfile -ExecutionPolicy RemoteSigned $(SolutionDir)Scripts\Prepare-Build.ps1 -SolutionDir $(SolutionDir) -ConfigurationName $(ConfigurationName)</PreBuildEvent>
</PropertyGroup>
</Project>
\ No newline at end of file
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using ATxCommon;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
......@@ -32,5 +32,13 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion(BuildDetails.GitMajor + "." +
BuildDetails.GitMinor + "." +
BuildDetails.GitPatch + ".0")]
[assembly: AssemblyFileVersion(BuildDetails.GitMajor + "." +
BuildDetails.GitMinor + "." +
BuildDetails.GitPatch + ".0")]
[assembly: AssemblyInformationalVersion(BuildDetails.BuildDate +
" " + BuildDetails.GitCommit +
" (" + BuildDetails.GitBranch + ")")]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment