Is there a way to force an “Any CPU” compiled app to run in 32bit mode on 64bit OS?

后端 未结 2 1325
有刺的猬
有刺的猬 2021-02-19 23:14

If I have a \"Any CPU\" compiled .NET app, it will run in 64bit mode on a 64bit OS.

But if I, for whatever reason, wants to force this app to run in 32bit mode. (As if i

2条回答
  •  再見小時候
    2021-02-19 23:54

    I believe you can do this with CorFlags.exe

    Something like:
    CorFlags yourassembly.exe /32BIT+

    Note that if the assembly is strong named you will also have to use the /force option which breaks the strong naming, so you'll then have to resign the assembly.

提交回复
热议问题