diff --git a/src/GitVersionCore.Tests/VersionConverters/Approved/cs/GitVersionInfoGeneratorTests.ShouldCreateFile.approved.txt b/src/GitVersionCore.Tests/VersionConverters/Approved/cs/GitVersionInfoGeneratorTests.ShouldCreateFile.approved.txt index ee67a9bbd6..330820c2ac 100644 --- a/src/GitVersionCore.Tests/VersionConverters/Approved/cs/GitVersionInfoGeneratorTests.ShouldCreateFile.approved.txt +++ b/src/GitVersionCore.Tests/VersionConverters/Approved/cs/GitVersionInfoGeneratorTests.ShouldCreateFile.approved.txt @@ -9,6 +9,7 @@ //------------------------------------------------------------------------------ [global::System.Runtime.CompilerServices.CompilerGenerated] +[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] static class GitVersionInformation { public static string Major = "1"; diff --git a/src/GitVersionCore.Tests/VersionConverters/Approved/fs/GitVersionInfoGeneratorTests.ShouldCreateFile.approved.txt b/src/GitVersionCore.Tests/VersionConverters/Approved/fs/GitVersionInfoGeneratorTests.ShouldCreateFile.approved.txt index 833c51acc6..43b1a470f9 100644 --- a/src/GitVersionCore.Tests/VersionConverters/Approved/fs/GitVersionInfoGeneratorTests.ShouldCreateFile.approved.txt +++ b/src/GitVersionCore.Tests/VersionConverters/Approved/fs/GitVersionInfoGeneratorTests.ShouldCreateFile.approved.txt @@ -10,6 +10,7 @@ [] [] +[] module GitVersionInformation let Major = "1" let Minor = "2" diff --git a/src/GitVersionCore.Tests/VersionConverters/Approved/vb/GitVersionInfoGeneratorTests.ShouldCreateFile.approved.txt b/src/GitVersionCore.Tests/VersionConverters/Approved/vb/GitVersionInfoGeneratorTests.ShouldCreateFile.approved.txt index 5cad04ce59..f5bac3bf88 100644 --- a/src/GitVersionCore.Tests/VersionConverters/Approved/vb/GitVersionInfoGeneratorTests.ShouldCreateFile.approved.txt +++ b/src/GitVersionCore.Tests/VersionConverters/Approved/vb/GitVersionInfoGeneratorTests.ShouldCreateFile.approved.txt @@ -9,6 +9,7 @@ '------------------------------------------------------------------------------ + NotInheritable Class GitVersionInformation Private Sub New() End Sub diff --git a/src/GitVersionCore/VersionConverters/GitVersionInfo/Templates/GitVersionInformation.cs b/src/GitVersionCore/VersionConverters/GitVersionInfo/Templates/GitVersionInformation.cs index 8648fe841f..1c99f55d84 100644 --- a/src/GitVersionCore/VersionConverters/GitVersionInfo/Templates/GitVersionInformation.cs +++ b/src/GitVersionCore/VersionConverters/GitVersionInfo/Templates/GitVersionInformation.cs @@ -1,4 +1,4 @@ -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // // This code was generated by a tool. // GitVersion @@ -9,6 +9,7 @@ //------------------------------------------------------------------------------ [global::System.Runtime.CompilerServices.CompilerGenerated] +[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] static class GitVersionInformation {{ {0} diff --git a/src/GitVersionCore/VersionConverters/GitVersionInfo/Templates/GitVersionInformation.fs b/src/GitVersionCore/VersionConverters/GitVersionInfo/Templates/GitVersionInformation.fs index b8f9d93838..479a3702da 100644 --- a/src/GitVersionCore/VersionConverters/GitVersionInfo/Templates/GitVersionInformation.fs +++ b/src/GitVersionCore/VersionConverters/GitVersionInfo/Templates/GitVersionInformation.fs @@ -1,4 +1,4 @@ -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // // This code was generated by a tool. // GitVersion @@ -10,5 +10,6 @@ [] [] +[] module GitVersionInformation {0} diff --git a/src/GitVersionCore/VersionConverters/GitVersionInfo/Templates/GitVersionInformation.vb b/src/GitVersionCore/VersionConverters/GitVersionInfo/Templates/GitVersionInformation.vb index 40556d5628..84b2b20f85 100644 --- a/src/GitVersionCore/VersionConverters/GitVersionInfo/Templates/GitVersionInformation.vb +++ b/src/GitVersionCore/VersionConverters/GitVersionInfo/Templates/GitVersionInformation.vb @@ -1,4 +1,4 @@ -'------------------------------------------------------------------------------ +'------------------------------------------------------------------------------ ' ' This code was generated by a tool. ' GitVersion @@ -9,6 +9,7 @@ '------------------------------------------------------------------------------ + NotInheritable Class GitVersionInformation Private Sub New() End Sub