diff options
author | Elinor Fung <elfung@microsoft.com> | 2021-09-28 03:40:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-28 03:40:23 +0300 |
commit | 3f78928969b37c3bb5b8b7b8592ddb726cce822a (patch) | |
tree | 89b34e19b60f04a1d70064628818fe834c18040c /Directory.Build.targets | |
parent | 7c87cc1aa5b16237e5924189de707f41a3d205b8 (diff) |
Enable running analyzers on DllImportGenerator and Microsoft.Interop.SourceGeneration (#59683)
Diffstat (limited to 'Directory.Build.targets')
-rw-r--r-- | Directory.Build.targets | 2 |
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 --> |