How to run a .NET Core project in 32-bit mode

How can you make a dotnetproject run in 32-bit mode on a 64-bit Windows 10 machine? Both dotnet restoreand dotnet buildmaintain a --runtime, for example:

dotnet restore --runtime win-x86
dotnet build --runtime win-x86

The subcommand dotnet run, however, does not support the switch --runtime.

+4
source share
1 answer

dotnet rundoes not support --runtime/ -r, but do not refuse bro, there is hope!

If you want to run only the 32-bit version, you can easily use, for example, dotnet your_app.dllafter building up to 32 bits ( publishor build). dotnet runcommand to run an application from source

x86 VS Properties > Build Platform target Any CPU x86

+2

Source: https://habr.com/ru/post/1680185/


All Articles