1
votes

In Delphi, you can do something like this in the source code.

{$SETPEFLAGS IMAGE_FILE_LARGE_ADDRESS_AWARE}

How can I do the same thing in C# code so I don't have to use external command such as editbin

1
"How can I do the same thing in C# code" - You can't. (We'll maybe appart from hacking your own support into private build of roslyn maybe) - Christian.K
As an alternative to doing it in the source code: stackoverflow.com/questions/2597790/… - Joe
That option is already turned on by any reasonably up-to-date C# compiler. Still relying on it is getting pretty stale as well. - Hans Passant
@HansPassant, this is true, but I can't find any documentation for it. See my question: stackoverflow.com/questions/34905703/… - Chris Weber

1 Answers

2
votes

How can I do the same thing in C# code so I don't have to use external command such as editbin?

You cannot. You would need to use an external tool.