New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing RID for "Windows, Any CPU" configuration #18098
Comments
|
@sfoslund can you help with this question? |
|
The |
|
No, I'm interested in a EXE file that launches the DLL. E.g. like from Or |
|
I see, since EXE files are executables and inherently not cross platform, I don't think there's a way to do this. |
|
https://stackoverflow.com/questions/516730/what-does-the-visual-studio-any-cpu-target-mean Visual C# 2005+ can make semi cross-platform binaries. Executables for "Any CPU" platform are running in 32-bit mode on 32-bit OS and in native 64-bit mode in 64-bit OS. |
|
In the stack overflow post you linked, this is the most liked answer:
I believe the AnyCPU assembly it's referring to are DLLs, which are taken and JIT (just in time) compiled to native code (64 bit on 64 bit OSs and 32 bit on 32). |
|
Seems that .NET Core have very bad support for AnyCPU EXEs. Sad... Clients of my app reported that 32-bit EXE don't run with 64-bit Runtime, so they're need to install both architectures of Runtime to use all .NET Core apps on their machines. Older versions of my app, built via Visual Studio (not CLI) in AnyCPU mode, are working correctly in all x86 and x64 systems with a single Runtime been installed. |
|
Per the dotnet/sdk#1906 (comment) issue, it doesn't appear that there is anything missing in the RID catalog doc, so I'm closing this issue. |
Visual Studio can build .NET Core apps for "Any CPU" platform (combo 32/64-bit). How to build/publish an app like Visual Studio does but using
dotnet publish -rtool? Which RID I need to use?Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: