Skip to content

Commit bc12f31

Browse files
committed
Projects in src can not use analyzer by setting UseMLCodeAnalyzer project property to false.
1 parent ba91e6b commit bc12f31

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Directory.Build.props

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@
1515
</PropertyGroup>
1616

1717
<ItemGroup>
18-
<ProjectReference Include="$(MSBuildThisFileDirectory)\..\tools-local\Microsoft.ML.CodeAnalyzer\Microsoft.ML.CodeAnalyzer.csproj">
18+
<ProjectReference
19+
Condition="'$(UseMLCodeAnalyzer)' != 'false'"
20+
Include="$(MSBuildThisFileDirectory)\..\tools-local\Microsoft.ML.CodeAnalyzer\Microsoft.ML.CodeAnalyzer.csproj">
1921
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
2022
<OutputItemType>Analyzer</OutputItemType>
2123
</ProjectReference>
22-
24+
2325
</ItemGroup>
2426

2527
</Project>

0 commit comments

Comments
 (0)