-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Area-NetSDKgood first issueIssues that would be a good fit for someone new to the repository. Narrow in scope, well-defined.Issues that would be a good fit for someone new to the repository. Narrow in scope, well-defined.
Milestone
Description
Also, you may want to stop inferring the `PlatformTarget` in the SDK when targeting modern .NET applications:
sdk/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.RuntimeIdentifierInference.targets
Lines 124 to 157 in 88c6473
<!-- Determine PlatformTarget (if not already set) from runtime identifier. --> | |
<Choose> | |
<When Condition="'$(PlatformTarget)' != '' or '$(RuntimeIdentifier)' == ''" /> | |
<When Condition="$(RuntimeIdentifier.EndsWith('-x86')) or $(RuntimeIdentifier.Contains('-x86-'))"> | |
<PropertyGroup> | |
<PlatformTarget>x86</PlatformTarget> | |
</PropertyGroup> | |
</When> | |
<When Condition="$(RuntimeIdentifier.EndsWith('-x64')) or $(RuntimeIdentifier.Contains('-x64-'))"> | |
<PropertyGroup> | |
<PlatformTarget>x64</PlatformTarget> | |
</PropertyGroup> | |
</When> | |
<When Condition="$(RuntimeIdentifier.EndsWith('-arm')) or $(RuntimeIdentifier.Contains('-arm-'))"> | |
<PropertyGroup> | |
<PlatformTarget>arm</PlatformTarget> | |
</PropertyGroup> | |
</When> | |
<When Condition="$(RuntimeIdentifier.EndsWith('-arm64')) or $(RuntimeIdentifier.Contains('-arm64-'))"> | |
<PropertyGroup> | |
<PlatformTarget>arm64</PlatformTarget> | |
</PropertyGroup> | |
</When> | |
<Otherwise> | |
<PropertyGroup> | |
<PlatformTarget>AnyCPU</PlatformTarget> | |
</PropertyGroup> | |
</Otherwise> | |
</Choose> |
Originally posted by @jkotas in #42556 (comment)
Metadata
Metadata
Assignees
Labels
Area-NetSDKgood first issueIssues that would be a good fit for someone new to the repository. Narrow in scope, well-defined.Issues that would be a good fit for someone new to the repository. Narrow in scope, well-defined.