diff --git a/ATxDiagnostics/ATxDiagnostics.csproj b/ATxDiagnostics/ATxDiagnostics.csproj index f38bdad9f7ececdffb82461455351352f2d6c13d..140cd0fd36f439cc19e9b0d5d4a2c510323d2893 100644 --- a/ATxDiagnostics/ATxDiagnostics.csproj +++ b/ATxDiagnostics/ATxDiagnostics.csproj @@ -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 diff --git a/ATxDiagnostics/Properties/AssemblyInfo.cs b/ATxDiagnostics/Properties/AssemblyInfo.cs index 8aa9c84098848483e09041b386e42102504dca3a..31539f5897346cc8b639a8421e160b9ef839da4c 100644 --- a/ATxDiagnostics/Properties/AssemblyInfo.cs +++ b/ATxDiagnostics/Properties/AssemblyInfo.cs @@ -1,6 +1,6 @@ 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