4
4
5
5
public class AssemblyInfoBuilder
6
6
{
7
-
8
7
public VersionAndBranchAndDate VersionAndBranch ;
9
8
public bool SignAssembly ;
10
- public string AssemblyName ;
11
-
12
9
public string GetAssemblyInfoText ( )
13
10
{
14
11
var assemblyInfo = string . Format ( @"
@@ -18,49 +15,45 @@ public string GetAssemblyInfoText()
18
15
[assembly: AssemblyVersion(""{0}"")]
19
16
[assembly: AssemblyFileVersion(""{1}"")]
20
17
[assembly: AssemblyInformationalVersion(""{2}"")]
21
- [assembly: {4}. NugetVersion(""{3}"")]
22
- [assembly: {4}. ReleaseDate(""{6 }"", ""{7 }"")]
18
+ [assembly: NugetVersion(""{3}"")]
19
+ [assembly: ReleaseDate(""{5 }"", ""{6 }"")]
23
20
24
- namespace {4}
21
+ [System.Runtime.CompilerServices.CompilerGenerated]
22
+ class NugetVersionAttribute : Attribute
25
23
{{
26
- [System.Runtime.CompilerServices.CompilerGenerated]
27
- class NugetVersionAttribute : Attribute
24
+ public NugetVersionAttribute(string version)
28
25
{{
29
- public NugetVersionAttribute(string version)
30
- {{
31
- Version = version;
32
- }}
33
-
34
- public string Version{{get;set;}}
26
+ Version = version;
35
27
}}
36
28
37
- [System.Runtime.CompilerServices.CompilerGenerated]
38
- class ReleaseDateAttribute : System.Attribute
39
- {{
40
- public string OriginalDate {{ get; private set; }}
41
- public string Date {{ get; private set; }}
42
-
43
- public ReleaseDateAttribute(string originalDate, string date)
44
- {{
45
- OriginalDate = date;
46
- Date = date;
47
- }}
48
- }}
29
+ public string Version{{get;set;}}
49
30
}}
50
- namespace {4}
31
+
32
+ [System.Runtime.CompilerServices.CompilerGenerated]
33
+ class ReleaseDateAttribute : System.Attribute
51
34
{{
52
- [System.Runtime.CompilerServices.CompilerGenerated]
53
- static class GitVersionInformation
35
+ public string OriginalDate {{ get; private set; }}
36
+ public string Date {{ get; private set; }}
37
+
38
+ public ReleaseDateAttribute(string originalDate, string date)
54
39
{{
55
- public static string AssemblyVersion = ""{0}"";
56
- public static string AssemblyFileVersion = ""{1}"";
57
- public static string AssemblyInformationalVersion = ""{2}"";
58
- public static string NugetVersion = ""{3}"";
59
- public static string SemVer = ""{5}"";
40
+ OriginalDate = date;
41
+ Date = date;
60
42
}}
61
43
}}
62
44
63
- " , GetAssemblyVersion ( ) , GetAssemblyFileVersion ( ) , VersionAndBranch . ToLongString ( ) , VersionAndBranch . GenerateNugetVersion ( ) , AssemblyName , VersionAndBranch . GenerateSemVer ( ) ,
45
+ [System.Runtime.CompilerServices.CompilerGenerated]
46
+ static class GitVersionInformation
47
+ {{
48
+ public static string AssemblyVersion = ""{0}"";
49
+ public static string AssemblyFileVersion = ""{1}"";
50
+ public static string AssemblyInformationalVersion = ""{2}"";
51
+ public static string NugetVersion = ""{3}"";
52
+ public static string SemVer = ""{4}"";
53
+ }}
54
+
55
+
56
+ " , GetAssemblyVersion ( ) , GetAssemblyFileVersion ( ) , VersionAndBranch . ToLongString ( ) , VersionAndBranch . GenerateNugetVersion ( ) , VersionAndBranch . GenerateSemVer ( ) ,
64
57
VersionAndBranch . ReleaseDate . OriginalDate . UtcDateTime . ToString ( "yyyy-MM-dd" ) , VersionAndBranch . ReleaseDate . Date . UtcDateTime . ToString ( "yyyy-MM-dd" ) ) ;
65
58
66
59
return assemblyInfo ;
0 commit comments