[英]How to create an app for Windows XP using Visual Studio Express 2012 for Windows 8
I have very little knowledge on apps for Desktop. 我对台式机应用程序了解甚少。
I created a Simple app for Windows 8 using the free Visual Studio Express 2012 for Windows 8 (in C#, XAML). 我使用适用于Windows 8的免费Visual Studio Express 2012(使用C#,XAML)为Windows 8创建了一个简单应用程序。
Now I am wanting that app to run on other Windows platforms like Windows XP, Windows 7 etc. I understand, that Metro apps can't run on Windows 7 or XP, but All I want is stripped down version of my app which runs on Windows 7 and XP as well. 现在,我希望该应用程序可以在其他Windows平台(例如Windows XP,Windows 7等)上运行。据我了解,Metro应用程序不能在Windows 7或XP上运行,但是我想要的只是我的应用程序的精简版本Windows 7和XP也是如此。
I am looking for options like Project->News->Target Windows XP... I also have another question, Can we use XAML,.CS approach even for Windows XP. 我正在寻找诸如Project-> News-> Target Windows XP ...之类的选项...我还有另一个问题,即使对于Windows XP,我们也可以使用XAML,.CS方法吗?
How can I port my existing Windows 8 app to WIndows XP, 7 with minimal effort and using C# and making use of current set up ( Visual Studio Express 2012) ? 如何以最小的工作量并使用C#并利用当前设置将现有的Windows 8应用程序移植到WIndows XP,7(Visual Studio Express 2012)?
First of all choose .Net Framework 4.0 as a target framework. 首先,选择.Net Framework 4.0作为目标框架。 (This window appears after clicking create new project)
(单击创建新项目后,将显示此窗口)
You can either choose WPF application or Windows Forms Application. 您可以选择WPF应用程序或Windows Forms应用程序。 But WPF is recommended if you know how to work with .Xaml
但是,如果您知道如何使用.Xaml,则建议使用WPF。
In order to get your app to run on Windows 7 and Windows 8 you need to: 为了使您的应用程序在Windows 7和Windows 8上运行,您需要:
To set your Target to .Net 4.0. 将目标设置为.Net 4.0。
File->New->Project 文件->新建->项目
At the top of the dialog there is a list that allows you to select the framework. 在对话框的顶部,有一个列表允许您选择框架。
Make sure the .Net 4.0 Framework is installed on the machines you wish to deploy to. 确保要部署到的计算机上已安装.Net 4.0 Framework。
If you want the framework to distribute with your app so you don't have to install the framework on each machine, 如果您希望该框架随您的应用一起发布,而不必在每台计算机上都安装该框架,
see this link . 看到这个链接 。
To develop applications for Windows XP or similar, you need to download and install a special edition of Visual Studio 2012 Express, named for Windows Desktop, 要开发适用于Windows XP或类似操作系统的应用程序,您需要下载并安装以Windows桌面命名的特殊版本的Visual Studio 2012 Express,
http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-for-windows-desktop http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-for-windows-desktop
http://blogs.msdn.com/b/visualstudio/archive/2012/09/12/visual-studio-express-2012-for-windows-desktop-is-here.aspx http://blogs.msdn.com/b/visualstudio/archive/2012/09/12/visual-studio-express-2012-for-windows-desktop-is-here.aspx
Don't use the so called " for Windows 8 ", as that can only create Windows Store Apps. 不要使用所谓的“ Windows 8 ”,因为那样只能创建Windows Store Apps。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.