From dc8b386702b228b6f0f5ed0381016c4cc8eb9a3a Mon Sep 17 00:00:00 2001 From: bvli Date: Sun, 4 Jun 2017 21:23:56 +0200 Subject: [PATCH] Add comments to templates (#40) 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. --- src/GitInfo/build/GitInfo.cs.pp | 1 + src/GitInfo/build/GitInfo.vb.pp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/GitInfo/build/GitInfo.cs.pp b/src/GitInfo/build/GitInfo.cs.pp index cc90e32..abdf41f 100644 --- a/src/GitInfo/build/GitInfo.cs.pp +++ b/src/GitInfo/build/GitInfo.cs.pp @@ -1,3 +1,4 @@ +// #define $NamespaceDefine$ #define $MetadataDefine$ #pragma warning disable 0436 diff --git a/src/GitInfo/build/GitInfo.vb.pp b/src/GitInfo/build/GitInfo.vb.pp index c31570d..a19df46 100644 --- a/src/GitInfo/build/GitInfo.vb.pp +++ b/src/GitInfo/build/GitInfo.vb.pp @@ -1,3 +1,4 @@ +' #Const $NamespaceDefine$ = 1 #Const $MetadataDefine$ = 1