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

Add infrastructure to include build-time information in assembly.

parent 69eebc66
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
......@@ -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 + ")")]
......@@ -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
......
public static class BuildDetails
{
public const string GitCommitName = "?commit?";
public const string GitBranch = "?branch?";
public const string BuildDate = "?build time?";
}
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