forked from iPeer/DiscordBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAssemblyFileData.tt
More file actions
29 lines (26 loc) · 859 Bytes
/
AssemblyFileData.tt
File metadata and controls
29 lines (26 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<#@ template language="C#" hostSpecific="True"#>
<#@ output extension="cs" #>
<#@ import namespace="System.IO" #>
<#
int revisionNumber;
try
{
using(var f = File.OpenText(Host.ResolvePath("AssemblyFileData.cs")))
{
string s = f.ReadLine().Replace("//","");
revisionNumber = int.Parse(s) + 1;
}
}catch
{
revisionNumber = 0;
}
string buildTimeString = String.Format(@"{0:yyyy-MM-dd\THH:mm:ss\Z}", DateTime.UtcNow);
#>
//<#=revisionNumber#>
//
// This code is automatically generated at build time. Any edits made to this file should be instead applied to its template (AssemblyFileData.tt)
//
using System.Reflection;
using DiscordBot.Utilities;
[assembly: AssemblyFileVersion("1.0.5.<#= revisionNumber #>")]
[assembly: AssemblyBuildTime("<#= buildTimeString #>")]