Skip to content

Commit 3741c7d

Browse files
committed
Updated the generated output to include an "auto-generated" header
Fixes #535
1 parent f8ffe96 commit 3741c7d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/GitVersionTask/AssemblyInfoBuilder/AssemblyInfoBuilder.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,17 @@ public string GetAssemblyInfoText(VersionVariables vars, string assemblyName)
1010
var v = vars.ToList();
1111

1212
var assemblyInfo = string.Format(
13-
@"using System;
13+
@"//------------------------------------------------------------------------------
14+
// <auto-generated>
15+
// This code was generated by a tool.
16+
// GitVersion
17+
//
18+
// Changes to this file may cause incorrect behavior and will be lost if
19+
// the code is regenerated.
20+
// </auto-generated>
21+
//------------------------------------------------------------------------------
22+
23+
using System;
1424
using System.Reflection;
1525
1626
[assembly: AssemblyVersion(""{0}"")]

0 commit comments

Comments
 (0)