Build platform target AnyCPU EXE still shows 32bit header in 64bit machine
问题 Not sure this has been asked before (I could not find any). I have simple console app/ESE and have the below settings. I'm running Windows 8, 63bit OS. And the EXE target framework .NET 4.5 However, when I compile this EXE, it still shows as a 32bit EXE. Since this is "Any CPU", I would expect the EXE to compile as 64bit / PE32+. Can some please help tell why this would be still 32bit? 回答1: You are misinterpreting CorFlags I think. Here is a CorFlags truth table: CPU Architecture PE 32BITREQ