Docs: use `<RuntimeIdentifier />` or `<PlatformTarget />`

Created on 13 Jul 2018  Â·  2Comments  Â·  Source: dotnet/docs

Sinc new Sdk Can directly publish Self-Contained app now, when specify x64 or x86 , what should we use ?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Area - .NET Core Guide

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 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 />

All 2 comments

@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 />

Was this page helpful?
0 / 5 - 0 ratings

Related issues

skylerberg picture skylerberg  Â·  3Comments

garfbradaz picture garfbradaz  Â·  3Comments

LJ9999 picture LJ9999  Â·  3Comments

sdmaclea picture sdmaclea  Â·  3Comments

gmatv picture gmatv  Â·  3Comments