如何让我的C#项目在Windows XP上运行 [英] How to make my C# project work on windows XP

查看:429
本文介绍了如何让我的C#项目在Windows XP上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



i创建我的项目(使用.net 4.6.1创建),如何使其在Windows XP,Windows 7(未更新到sp1)上工作。



我尝试了什么:



i将它从项目属性更改为.net 3.5但是246错误出现

像这样:


i create my project (created with .net 4.6.1), how to make it work on windows xp , windows 7 (not updated to sp1).

What I have tried:

i changed it from project properties to .net 3.5 but 246 error appear
like this :

Severity	Code	Description	Project	File	Line	Suppression State
Error		Invalid Resx file. Type DevExpress.Utils.SuperToolTip, DevExpress.Utils.v17.1, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a in the data at line 128, position 4 cannot be located.	

推荐答案

您针对.NET 4.6.1编写了应用程序。这不适用于Windows XP。适用于WinXP的最高版.NET是.NET 4.0。



进入项目属性并将目标框架更改为.NET Framework 4.0并重新编译。您可能需要修复或重写代码以使其适用于旧框架。
You wrote your app against .NET 4.6.1. That's not going to work on Windows XP. The highest version of .NET that works on WinXP is .NET 4.0.

Go into your project Properties and change the targeted framework to .NET Framework 4.0 and recompile. Chances are you're going to have to fix or rewrite code to make it work against the older framework.


这篇关于如何让我的C#项目在Windows XP上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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