我如何面向.NET 4.0.3在XP上使用Visual Studio 2012?应用程序无法与&QUOT运行,不是有效的Win32应用程序" [英] How do I target .NET 4.0.3 on XP using Visual Studio 2012? Application fails to run with "not a valid Win32 application"

查看:209
本文介绍了我如何面向.NET 4.0.3在XP上使用Visual Studio 2012?应用程序无法与&QUOT运行,不是有效的Win32应用程序"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有针对.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.

这篇关于我如何面向.NET 4.0.3在XP上使用Visual Studio 2012?应用程序无法与&QUOT运行,不是有效的Win32应用程序"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆