我如何面向.NET 4.0.3在XP上使用Visual Studio 2012?应用程序无法与&QUOT运行,不是有效的Win32应用程序"应用程序、有效、不是、Visual

2023-09-02 02:09:59 作者:日暮盼归人

我有针对.NET 4.0.3,需要在XP上运行大型应用程序。它建立精细使用Visual Studio 2010 SP1和XP上运行正常。

I have a large application targeting .NET 4.0.3 that needs to run on XP. It builds fine using Visual Studio 2010 SP1 and runs properly on XP.

使用的Visual Studio 2012针对.NET 4.0.3还建立精细和Windows 7上运行正常,但它不能在XP上运行的建设。我得到一个错误说MyApp.exe的不是有效的Win32应用程序。

Building using Visual Studio 2012 targeting .NET 4.0.3 also builds fine and runs fine on Windows 7 but it fails to run on XP. I get an error saying MyApp.exe is not a valid Win32 application.

我如何继续使用Visual Studio 2012为目标的.NET 4.0.3与XP机器支持?

How do I continue to target .NET 4.0.3 with support for XP machines using Visual Studio 2012?

推荐答案

我不能肯定这会工作,但尝试的伎俩的这里显示以手动设置子系统版本 EditBin.exe

I'm not certain this will work, but try the trick shown here to manually set the subsystem version with EditBin.exe.