[英]Run a visual studio 2010 Windows7 project on a Windows XP machine
I have created a simple windows forms visual studio 2010 project in windows 7 32 Bit. 我已经在Windows 7 32位中创建了一个简单的Windows Forms Visual Studio 2010项目。
I need to run the .exe file in the release folder under windows xp. 我需要在Windows XP下的release文件夹中运行.exe文件。
What files to I need to bundle with my EXE to get this to work? 我需要将哪些文件与EXE捆绑在一起才能正常工作?
You don't need anything extra. 您不需要任何额外的东西。 You just need to be sure if required .NET Framework is installed on the target platform which is XP in this case. 您只需要确定是否在目标平台(在这种情况下为XP)上安装了所需的.NET Framework。 Other than that, I suggest you to use Visual Studio's Package and Deployment Wizard to make a setup. 除此之外,我建议您使用Visual Studio的“打包和部署向导”进行设置。 But even without Package and Deployment Wizard, if you use release output (not debug), just copying executable should be enough to run on XP platform. 但是即使没有打包和部署向导,如果使用发行版输出(而不是调试),仅复制可执行文件就足以在XP平台上运行。 Be sure that you don't use anything unsupported by Windows XP (like DirectX 11, Direct2d etc.). 确保不要使用Windows XP不支持的任何内容(例如DirectX 11,Direct2d等)。
ps: you may need some additional files like manifest files. ps:您可能需要一些其他文件,例如清单文件。 but that completely depends on your project. 但这完全取决于您的项目。 Package and Deployment Wizard should take care of these as well. 打包和部署向导也应注意这些问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.