Skip to content

Commit

Permalink
Add <auto-generated /> comments to templates (#40)
Browse files Browse the repository at this point in the history
By adding these comments as the first line in the template, code
analyzers (like for exacmple StyleCop) will ignore issues in the file.

Without these changes builds will fail on projects with StyleCop enabled
and "Treat warnings as errors" set to true.
  • Loading branch information
bvli authored and kzu committed Jun 4, 2017
1 parent 68dc363 commit dc8b386
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/GitInfo/build/GitInfo.cs.pp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// <auto-generated />
#define $NamespaceDefine$
#define $MetadataDefine$
#pragma warning disable 0436
Expand Down
1 change: 1 addition & 0 deletions src/GitInfo/build/GitInfo.vb.pp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
' <auto-generated/>
#Const $NamespaceDefine$ = 1
#Const $MetadataDefine$ = 1
Expand Down

0 comments on commit dc8b386

Please sign in to comment.