I was trying to build one of my x86 projects in x64 and I tried the solution given here
set _IsNativeEnvironment=true
"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe" YourProject.sln
Now, I am getting the following error prompt when I try to open any of the visual studio solutions ....... is not a valid win32 application.
Note: I have been working on this solution for quite a while and there was no such problem.
Edit: My devenv.exe itself has got corrupted and it's size is 0 KB. I reckon that's the problem. Will try to reinstall visual studio and see if the problem persists.