Winforms:不是有效的 Win32 应用程序
我已经使用 VS2012 创建了一个简单的 Windows 窗体应用程序,我正在尝试将它安装到 XP 机器上.
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 不是有效的 Win32 应用程序.
setup.exe is not a valid Win32 application.
诚然,我确实使用了 .net 4.5 框架,这是 XP 机器上的一个问题.但是我现在使用 .net 2.0 创建了一个测试应用程序并遇到了同样的问题.
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.
我正在 win7 x64 机器上开发应用程序,并尝试在配置管理器中将平台设置为 x86,但没有任何乐趣.
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.
这是我还是 VS 2012?我已经设法使用 VS2010 安装了一个测试应用程序?
Is this me or VS 2012? I've managed to install a test app using VS2010?
当我尝试使用 VS2012 处理 Lightswitch 应用程序并放弃它时,我遇到了类似的问题.
I had a similar issue when I tried to work on a Lightswitch application using VS2012 and abandoned it.
有什么建议吗?
干杯,麻木
这是关于该主题的博客和解决方法:
Here is a blog on the subject and a workaround:
Visual 附带的 Clickonce 引导程序引擎 (setup.exe)Studio 2012 不兼容任何低于 Windows Vista 的操作系统.所以,上述错误消息是预期的和设计的.这样做的原因行为是因为引导程序是使用 VC 编译器编译的并且 Dev11 VC 编译器不支持 Windows XP.
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.