Skip to content

Commit 6490a54

Browse files
committed
No need to define ROSLYN_4_12 when in source build
1 parent 5f640ca commit 6490a54

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/RoslynAnalyzers/Directory.Build.props

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88

99
<!-- Set 'NoDefaultExcludes' to ensure that we can package .editorconfig files into our analyzer NuGet packages -->
1010
<NoDefaultExcludes>true</NoDefaultExcludes>
11-
11+
1212
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
13+
</PropertyGroup>
14+
15+
<PropertyGroup Condition="'$(DotNetBuildSourceOnly)' != 'true'">
1316
<DefineConstants>$(DefineConstants),ROSLYN_4_12_OR_LOWER</DefineConstants>
1417
</PropertyGroup>
1518

0 commit comments

Comments
 (0)