Search code examples
uwparm64-bitarm64.net-standard-2.0

.NET Standard & Platform target


What I have understood, the .NET Standard is only specification of which APIs to use when compiling the project. My goal is to use this .NET Standard Class Library in UWP and Xamarin project at the same time. This is fine, I can do that, everything compiles as expected.

My only concern is about how to target different Platforms: x86, x64, ARM and ARM64 for UWP and "others" for Xamarin?

For what is Platform target setting used in .NET Standard Class Library project?


Solution

  • For what is Platform target setting used in .NET Standard Class Library project?

    Platform target setting is Debug|AnyCPU, you could double click .NET Standard project you will find PropertyGroup following.

    <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
      <DebugType>portable</DebugType>
      <DebugSymbols>true</DebugSymbols>
    </PropertyGroup>