简体   繁体   English

VS2012项目x86目标未在32位Windows XP上运行

[英]VS2012 project x86 target not running on 32 bit Windows XP

I wrote a WPF application using VS2012 on windows 8 computer (x86) and I want it to run on Windows XP x86. 我在Windows 8计算机(x86)上使用VS2012编写了WPF应用程序,并且希望它在Windows XP x86上运行。 When I try to run the program I get error "... is not a valid windows 32 application." 当我尝试运行该程序时,出现错误“ ...不是有效的Windows 32应用程序”。 I've tried change Platform target to x86 and Any CPU,But have the same error. 我试过将Platform target更改为x86和Any CPU,但是有相同的错误。 How can I fix it? 我该如何解决?

Make sure you target .NET 4.0 (not 4.5). 确保以.NET 4.0(而非4.5)为目标。 Also make sure both .NET 4.0 Runtime and Reliability Update 2 have been installed on your XP machine (it must be an XP SP3 machine). 还要确保在XP机器(它必须是XP SP3机器)上已经安装了.NET 4.0 RuntimeReliability Update 2

For C/C++ projects you need to: 对于C / C ++项目,您需要:

  • Go to project Properties -> Configuration Properties -> General 转到项目属性 -> 配置属性 -> 常规
  • Change the Platform Toolset to Visual Studio 2012 - Windows XP (v110_xp) 平台工具集更改为Visual Studio 2012-Windows XP(v110_xp)

You'll need at least VS2012 SP1 installed for that option to be available. 您至少需要安装VS2012 SP1,该选项才可用。 Applications may need msvcrt110.dll . 应用程序可能需要msvcrt110.dll

For more details see: http://software.intel.com/en-us/articles/linking-applications-using-visual-studio-2012-to-run-on-windows-xp 有关更多详细信息,请参见: http : //software.intel.com/zh-cn/articles/linking-applications-using-visual-studio-2012-to-run-on-windows-xp

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 加载 32 位 DLL 时出现 BadImageFormatException,目标是 x86 - BadImageFormatException when loading 32 bit DLL, target is x86 如何同时为x86和x64配置VS2012解决方案 - How to configure a VS2012 solution for x86 and x64 simultaneously VS2012在x64 OS中使用“任何CPU”编译为x86 - VS2012 compiles to x86 with “Any CPU” in a x64 OS 为Windows XP x86编译程序 - Compiling a program for Windows XP x86 使用VS2012开发的Windows应用程序未在Windows XP SP3中运行 - Windows application developed using VS2012 is not running in windows XP SP3 在Visual C#2008 Express Edition中设置32位x86构建目标? - Setting 32-bit x86 build target in Visual C# 2008 Express Edition? C#Windows程序将文件写入“ sysWOW64”和“程序文件(x86)”。 使用VS安装项目。 64位系统上的32位应用程序 - C# Windows Program writes files to “sysWOW64” and to “Program Files(x86)”. Using VS Setup Projects. 32bit App on 64bit System 在 Windows 安装程序 (VS2008) 中同时定位 x86 和 x64 - Target both x86 and x64 in the Windows Installer (VS2008) 在64位窗口上运行x86包时,ClickOnce:BadImageFormatException - ClickOnce: BadImageFormatException when running x86 package on 64 bit windows VS2012如何将C#的AnyCPU配置的输出目录设置为各个解决方案配置的x86和x64文件夹? - VS2012 How to set output directory for C#'s AnyCPU configuration to x86 and x64 folders for respective solution configs?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM