What are the negative effects for running a 64bit .NET program from Program Files (x86)?

The reverse of this question.

My .NET C# program sets the Platform Target as ‘Any CPU’, which on my 64 bit Win7 OS, means it will run as 64 bit. Even when the program is stored under Program Files (x86), it will still run as 64 bit interestingly (I checked with IntPtr.Size == 8).

So should I expect anything bad to happen? The program references a DLL which is also ‘Any CPU’, but that’s all. I would rather install it to the “Program Files (x86)” folder or maintenance reasons if nothing else.

And would anything bad happen if this wasn’t .NET, and just a standard C/C++ executable?


Source: dll

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.