diff --git a/src/coreclr/System.Private.CoreLib/System.Private.CoreLib.csproj b/src/coreclr/System.Private.CoreLib/System.Private.CoreLib.csproj index 9ef1024c449da8..fdd395fe520a01 100644 --- a/src/coreclr/System.Private.CoreLib/System.Private.CoreLib.csproj +++ b/src/coreclr/System.Private.CoreLib/System.Private.CoreLib.csproj @@ -39,6 +39,7 @@ $(TargetArchitecture) arm + AnyCPU true false @@ -59,28 +60,21 @@ - x64 - false $(DefineConstants);TARGET_AMD64 - x86 $(DefineConstants);TARGET_X86 - arm $(DefineConstants);TARGET_ARM - AnyCPU $(DefineConstants);TARGET_ARM64 - AnyCPU $(DefineConstants);TARGET_LOONGARCH64 - AnyCPU $(DefineConstants);TARGET_RISCV64 diff --git a/src/coreclr/nativeaot/Directory.Build.props b/src/coreclr/nativeaot/Directory.Build.props index 42e6f968e0e1e9..d3277aa58ece73 100644 --- a/src/coreclr/nativeaot/Directory.Build.props +++ b/src/coreclr/nativeaot/Directory.Build.props @@ -21,6 +21,7 @@ $(TargetArchitecture) arm + AnyCPU true false @@ -78,20 +79,15 @@ - x64 - false TARGET_64BIT;TARGET_AMD64;$(DefineConstants) - x86 TARGET_32BIT;TARGET_X86;$(DefineConstants) - arm TARGET_32BIT;TARGET_ARM;$(DefineConstants) - AnyCPU TARGET_64BIT;TARGET_ARM64;$(DefineConstants) diff --git a/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj b/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj index 95f7f110cda509..905dc83eb08dee 100644 --- a/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj +++ b/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj @@ -26,6 +26,7 @@ + AnyCPU true false @@ -48,40 +49,30 @@ - x64 - false $(DefineConstants);TARGET_AMD64 - x86 $(DefineConstants);TARGET_X86 - arm $(DefineConstants);TARGET_ARMV6 - arm $(DefineConstants);TARGET_ARM - AnyCPU $(DefineConstants);TARGET_ARM64 - AnyCPU $(DefineConstants);TARGET_RISCV64 - AnyCPU $(DefineConstants);TARGET_S390X - AnyCPU $(DefineConstants);TARGET_WASM - AnyCPU $(DefineConstants);TARGET_POWERPC64