Skip to content

Commit 0d84031

Browse files
committed
Refine #if conditions around use of attributes
1 parent 074684d commit 0d84031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Nerdbank.GitVersioning.Tasks/AssemblyVersionInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class AssemblyVersionInfo : Microsoft.Build.Utilities.Task
2525
/// </summary>
2626
/// <see href="https://github.com/dotnet/Nerdbank.GitVersioning/issues/346" />
2727
private const string CompilerDefinesAroundGeneratedCodeAttribute = "NETSTANDARD || NETFRAMEWORK || NETCOREAPP";
28-
private const string CompilerDefinesAroundExcludeFromCodeCoverageAttribute = "NETFRAMEWORK || NETCOREAPP || NETSTANDARD2_0 || NETSTANDARD2_1";
28+
private const string CompilerDefinesAroundExcludeFromCodeCoverageAttribute = "NET40_OR_GREATER || NETCOREAPP2_0_OR_GREATER || NETSTANDARD2_0_OR_GREATER";
2929
private const string FileHeaderComment = @"------------------------------------------------------------------------------
3030
<auto-generated>
3131
This code was generated by a tool.

0 commit comments

Comments
 (0)