Sinc new Sdk Can directly publish Self-Contained app now, when specify x64 or x86 , what should we use ?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@John0King, you create a separate deployment for each platform that you target. The target platforms are defined by a runtime identifier (RID) defined in the .NET Core RID Catalog. If you want to target both 32-bit and 64-bit Windows platforms, for example, you'd have to create separate 32-bit and 64-bit Windows deployments.
I don't think that your question has a documentation impact, so I'm closing the issue. If you disagree, please let us know by responding.
@rpetrusha I hope the doc can explain more about <RuntimeIdentifier /> and <PlatformTarget />,
AFIK, when I set <RuntimeIdentifier >win-x64 </RuntimeIdentifier> the assembly is target x64,
But when I set <RuntimeIdentifiers >win-x64;win-86 </RuntimeIdentifiers> the assembly is target AnyCPU
and when I not use .net core but use net461 and OutPutType is exe, the assembly is target x86 by default. but I want my app be x64 or AnyCpu , What should I use <RuntimeIdentifier /> or <PlatformTarget />
Most helpful comment
@rpetrusha I hope the doc can explain more about
<RuntimeIdentifier />and<PlatformTarget />,AFIK, when I set
<RuntimeIdentifier >win-x64 </RuntimeIdentifier>the assembly is targetx64,But when I set
<RuntimeIdentifiers >win-x64;win-86 </RuntimeIdentifiers>the assembly is targetAnyCPUand when I not use
.net corebut usenet461and OutPutType is exe, the assembly is target x86 by default. but I want my app be x64 or AnyCpu , What should I use<RuntimeIdentifier />or<PlatformTarget />