问题
I've created a simple Windows Form Application using VS2012 and I'm trying to install it to an XP machine.
Unfortunately I get the following error message:
setup.exe is not a valid Win32 application.
Admittedly, I did use the .net 4.5 framework which is an issue on XP machines. But I have now created a test application using .net 2.0 and get the same problem.
I'm developing the app on a win7 x64 machine and tried setting the platform to x86 in the configuration manager with out any joy.
Is this me or VS 2012? I've managed to install a test app using VS2010?
I had a similar issue when I tried to work on a Lightswitch application using VS2012 and abandoned it.
Any suggestions?
Cheers, Numb
回答1:
Here is a blog on the subject and a workaround:
Setup.exe is not a valid Win32 application
Clickonce bootstrapper engine (setup.exe) that was shipped with Visual Studio 2012 is NOT compatible with any OS below Windows Vista. So, the above error message is expected and by design. The reason for this behavior is because the bootstrapper is compiled using the VC compiler and the Dev11 VC compiler does not support Windows XP.
来源:https://stackoverflow.com/questions/13051605/winforms-not-a-valid-win32-application