如何更改C#windowsForm应用程序.netFramework? [英] How to change C# windowsForm application .netFramework ?

查看:494
本文介绍了如何更改C#windowsForm应用程序.netFramework?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我用.net 4.5.1创建一个C#windows窗体应用程序

现在我无法在Windows XP上安装它!

我如何为我创建的项目更改.net版本?

以及如何创建能够在任何版本的Windows中安装的应用程序?

注意:我使用visual studio 2013 Ultimate

解决方案

check .NET Framework系统要求 [ ^ ]并确定哪个.net框架应该用于您定位的操作系统范围。



然后转到项目属性并相应地设置目标.net框架



https://www.nuget.org/packages/System.Data.SQLite [ ^ ]

http://docs.nuget.org/docs/start-here/managing-nuget-packages-using-the-dialog [ ^ ]

https://visualstudiogallery.msdn。 microsoft.com/4ec1526c-4a8c-4a84-b702-b21a8f5293ca [ ^ ]


Quote:

如何为我创建的项目更改.net版本?



你可以转到项目的属性,然后将目标框架更改为在Windows XP上运行的较低版本。请注意,如果您使用特定于.NET 4.5的功能,则必须在代码中替换它们。

Quote:

如何创建一个能够在任何版本的Windows中安装的应用程序?



您必须确保您的应用程序使用可在所有版本上运行的.NET版本您要支持的Windows版本。


Hi
I create a C# windows form application with .net 4.5.1
Now I cant Install it on windows XP !
How I can change .net version for my created project ?
and How I can create an app that able to install in any version of windows ?
Note : I use visual studio 2013 Ultimate

解决方案

check .NET Framework System Requirements[^] and decide which .net framwork should use for range of Operating sytem you targetting.

then go to project properties and set target .net framework accordingly

https://www.nuget.org/packages/System.Data.SQLite[^]
http://docs.nuget.org/docs/start-here/managing-nuget-packages-using-the-dialog[^]
https://visualstudiogallery.msdn.microsoft.com/4ec1526c-4a8c-4a84-b702-b21a8f5293ca[^]


Quote:

How I can change .net version for my created project ?


You can go to the Properties of your project, and change the Target Framework to a lower one that runs on Windows XP. Note that if you use .NET 4.5-specific features, you'll have to replace them in the code.

Quote:

How I can create an app that able to install in any version of windows ?


You always have to make sure that your app uses a .NET version that can run on all Windows versions you want to support.


这篇关于如何更改C#windowsForm应用程序.netFramework?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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