mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-09 09:34:49 +09:00
Don't enable ILLink analyzers for unsupported TFMs (#87071)
* Don't enable ILLink analyzers for unsupported TFMs This adds a condition to EnableSingleFileAnalyzer to prevent it from requiring the ILLink pack that is only supported on netcoreapp3.0 and above. Adding a condition on the TFM requires moving the setting into a targets file. Also consolidates more of the analyzer logic into this file. --------- Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
This commit is contained in:
parent
1d5ee1c9e2
commit
56c427bb4d
7 changed files with 17 additions and 11 deletions
|
@ -7,6 +7,7 @@
|
|||
<ImportDirectoryBuildTargets>false</ImportDirectoryBuildTargets>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="$(RepositoryEngineeringDir)Analyzers.targets" />
|
||||
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" />
|
||||
<Import Project="$(RepositoryEngineeringDir)liveBuilds.targets" />
|
||||
<Import Project="$(RepositoryEngineeringDir)generators.targets" />
|
||||
|
@ -35,7 +36,6 @@
|
|||
unconditionally in Microsoft.NETCoreSdk.BundledVersions.props.
|
||||
-->
|
||||
<NETCoreAppMaximumVersion>$(MajorVersion).$(MinorVersion)</NETCoreAppMaximumVersion>
|
||||
<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 -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue