How to run a .NET executable on a 64-bit basis

I have an executable that is 32-bit by default. It has no source code, and I want to save both 32-bit and 64-bit frameworks in the system. Is there a way to make this executable run on a 64-bit .NET platform instead?

+3
source share
5 answers

use the corflags tool to flip the "64" bit if available "

This blog post explains this with examples and some sitelinks.

If you have recompiled the source code with something VS 2005 or more, you can change the settings to make it ready to run as 64-bit.

+4

.NET , 64 ..Net-Framework x64 CLR 32- 64- .

, blogpost , :

: 32- 64- x86 x64 .NET Framework CLR

+1

Exe?

, 64 , , 64 .

0

32-, 64- , 32- . 64- 32- . ( → → → "x86" " " )

: 32- 64- .

0

.

Writing managed code is a pretty good way to not worry about any x86 (32-bit) or x64 (64-bit). Write managed code, compile, and it will work everywhere.

Thus, if you create it for "Any CPU", it should work in 64-bit mode on a 64-bit OS automatically. But you can only do this by managing all the code. You should read the blog entry for details.

0
source

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


All Articles