wpf 什么版本的 Visual Studio 面向 Windows XP 构建?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20446243/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What version of Visual Studio to target windows XP builds?
提问by Rabih Kodeih
I want to develop a business application using WPF/C# .NET. The application will have lots of modern gui widgets and functionality such as dockable views and a ribbon. The application should also run on Windows XP as well as Windows 7 and 8.
我想使用 WPF/C# .NET 开发一个业务应用程序。该应用程序将具有许多现代 gui 小部件和功能,例如可停靠视图和功能区。该应用程序还应在 Windows XP 以及 Windows 7 和 8 上运行。
What Visual studio .NET version should I use? I've heard that in VS 2012/2013 you can't target xp. Is that the case?
我应该使用哪个 Visual Studio .NET 版本?我听说在 VS 2012/2013 中你不能定位 xp。是这样吗?
回答by gldraphael
Use Visual Studio 2013 and develop on a Windows 7/8 system.
使用 Visual Studio 2013 并在 Windows 7/8 系统上开发。
You can target XP easily by just changing the .NET framework from 4.5 to 4.0
只需将 .NET 框架从 4.5 更改为4.0,您就可以轻松地以 XP 为目标
UPDATE: As @hvd has stated in the comments, be sure you test your product on an XP machine (or on a machine that has only .NET 4.0)
http://news.kynosarges.org/2012/08/01/no-net-4-5-for-xp2003/
更新:正如@hvd 在评论中所述,请确保您在 XP 机器(或只有 .NET 4.0 的机器)上测试您的产品
http://news.kynosarges.org/2012/08/01/no -net-4-5-for-xp2003/
回答by Rohit Vats
Its more of .Net framework and not IDE specific.
它更多的是 .Net 框架,而不是特定于 IDE 的。
.Net 4.5 frameworkcannot be installed on XP machines. So if you are talking about development machines, its true you can't go with VS 2012/2013since 4.5 in installed by default with them.
.Net 4.5 framework不能安装在 XP 机器上。所以如果你在谈论development machines,它是真的,can't go with VS 2012/2013因为默认情况下安装了 4.5。
But if you are talking about customer machineshere, you can use Windows 7/8 for development with 2012/2013 IDEbut project should target .Net 4.0 framework or below.
但是如果你在customer machines这里谈论,你可以使用Windows 7/8 for development with 2012/2013 IDE但项目应该针对.Net 4.0 framework or below.
回答by Rahul Tripathi
I think Visual Studio 2013 natively supports .Net v4.5, which does not support Windows XP. Even VS2012 requires Windows 7.
我认为 Visual Studio 2013 本身支持 .Net v4.5,它不支持 Windows XP。甚至 VS2012 也需要 Windows 7。
And if you want to target XP then you can switch the .NET version to 4.0. So its about the framework rather than IDE
如果你想以 XP 为目标,那么你可以将 .NET 版本切换到 4.0。所以它是关于框架而不是 IDE
If you want a XP support on Visual Studio then you have to use the Visual Studio 2010 version.
如果您想在 Visual Studio 上获得 XP 支持,则必须使用 Visual Studio 2010 版本。

