Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElinor Fung <elfung@microsoft.com>2021-09-28 03:40:23 +0300
committerGitHub <noreply@github.com>2021-09-28 03:40:23 +0300
commit3f78928969b37c3bb5b8b7b8592ddb726cce822a (patch)
tree89b34e19b60f04a1d70064628818fe834c18040c /Directory.Build.targets
parent7c87cc1aa5b16237e5924189de707f41a3d205b8 (diff)
Enable running analyzers on DllImportGenerator and Microsoft.Interop.SourceGeneration (#59683)
Diffstat (limited to 'Directory.Build.targets')
-rw-r--r--Directory.Build.targets2
1 files changed, 1 insertions, 1 deletions
diff --git a/Directory.Build.targets b/Directory.Build.targets
index 6400a9069de..f59955242b2 100644
--- a/Directory.Build.targets
+++ b/Directory.Build.targets
@@ -18,7 +18,7 @@
unconditionally in Microsoft.NETCoreSdk.BundledVersions.props.
-->
<NETCoreAppMaximumVersion>$(MajorVersion).$(MinorVersion)</NETCoreAppMaximumVersion>
- <EnableNETAnalyzers Condition="'$(EnableAnalyzers)' != 'true'">false</EnableNETAnalyzers>
+ <EnableNETAnalyzers Condition="'$(EnableNETAnalyzers)' == ''">$(RunAnalyzers)</EnableNETAnalyzers>
<!-- SDK sets product to assembly but we want it to be our product name -->
<Product>Microsoft%AE .NET</Product>
<!-- Use the .NET product branding version for informational version description -->