diff --git a/ATxService/ATxService.csproj b/ATxService/ATxService.csproj index b9c7e8642f5775554bce85d5a3459fdf94717e58..dc0462b93e694f738d5cc3c0b81dc56fcab30b27 100644 --- a/ATxService/ATxService.csproj +++ b/ATxService/ATxService.csproj @@ -78,6 +78,9 @@ <Reference Include="WindowsBase" /> </ItemGroup> <ItemGroup> + <Compile Include="..\Resources\BuildDetails.cs"> + <Link>BuildDetails.cs</Link> + </Compile> <Compile Include="AutoTx.cs"> <SubType>Component</SubType> </Compile> diff --git a/ATxService/Properties/AssemblyInfo.cs b/ATxService/Properties/AssemblyInfo.cs index 0ae1c6aad63d704f218057d273fb2f0bfaa804ef..f88ef9a0d1dfaf7006b7b9ecbf277b1c283f66a8 100644 --- a/ATxService/Properties/AssemblyInfo.cs +++ b/ATxService/Properties/AssemblyInfo.cs @@ -4,12 +4,12 @@ using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. -[assembly: AssemblyTitle("AutoTx")] +[assembly: AssemblyTitle("AutoTx Service")] [assembly: AssemblyDescription("Automatic Background Transfer Service")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("IMCF, Biozentrum, University of Basel")] [assembly: AssemblyProduct("AutoTx")] -[assembly: AssemblyCopyright("Copyright © 2018")] +[assembly: AssemblyCopyright("Copyright © 2018")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -33,3 +33,7 @@ using System.Runtime.InteropServices; // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] + +[assembly: AssemblyInformationalVersion(BuildDetails.GitCommitName + + " @ " + BuildDetails.GitBranch + + " (" + BuildDetails.BuildDate + ")")] diff --git a/AutoTx.sln b/AutoTx.sln index 27d54e86e2fcc0dd5eae5dcbfeab24a56c02096c..3e1f6d99431feaf923ea940f7c33c4db01237375 100644 --- a/AutoTx.sln +++ b/AutoTx.sln @@ -16,6 +16,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3E945C19-14E3-4FE8-9008-480D4EA57F45}" ProjectSection(SolutionItems) = preProject Resources\auto-tx-logo.png = Resources\auto-tx-logo.png + Resources\BuildDetails.cs = Resources\BuildDetails.cs Resources\Mail-Templates\DiskSpace-Low.txt = Resources\Mail-Templates\DiskSpace-Low.txt Resources\Mail-Templates\Transfer-Interrupted.txt = Resources\Mail-Templates\Transfer-Interrupted.txt Resources\Mail-Templates\Transfer-Success.txt = Resources\Mail-Templates\Transfer-Success.txt diff --git a/Resources/BuildDetails.cs b/Resources/BuildDetails.cs new file mode 100644 index 0000000000000000000000000000000000000000..04fc388bb0a11af9eef01a6c4f0f7f005026695c --- /dev/null +++ b/Resources/BuildDetails.cs @@ -0,0 +1,6 @@ +public static class BuildDetails +{ + public const string GitCommitName = "?commit?"; + public const string GitBranch = "?branch?"; + public const string BuildDate = "?build time?"; +}