Open baronfel opened 2 months ago
Also, you may want to stop inferring the PlatformTarget
in the SDK when targeting modern .NET applications:
@jkotas this issue is for an MSBuild BuildCheck for usage in customer projects, so I extracted your comment to a new issue for the SDK to stop setting it in the first place.
Is your feature request related to a problem? Please describe.
The
PlatformTarget
field (and therefore Platform in MSbuild) only applies to .NET Framework and doesn't apply to modern .NET applications. For these applications, Platform can (should) always beAnyCPU
. We should guide users to removing customizations to this property for projects that do not need it.From Jan Kotas in dotnet/sdk#42344: