简体   繁体   English

如何使用适用于Windows 8的Visual Studio Express 2012为Windows XP创建应用程序

[英]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上运行,您需要:

  1. 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. 在对话框的顶部,有一个列表允许您选择框架。

    see this link 看到这个链接

  2. Make sure the .Net 4.0 Framework is installed on the machines you wish to deploy to. 确保要部署到的计算机上已安装.Net 4.0 Framework。

    see this link 看到这个链接

  3. 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.

相关问题 使用Visual Studio 2012创建的C#Windows窗体应用程序无法在Windows XP上运行 - C# Windows forms app created using Visual Studio 2012 not working on windows xp 有没有办法在Windows 7和Visual Studio 2012中创建一个Windows Phone 8应用程序 - Is there a way to create a windows phone 8 app in windows 7 and visual studio 2012 Visual Studio 2012 Update 4没有创建“ Windows 8 Store App”的选项 - Visual Studio 2012 Update 4 No Option to Create “Windows 8 Store App” 在Visual Studio 2012中为Windows服务创建MSI - create MSI for windows service in visual studio 2012 如何部署Windows应用商店项目(Visual Studio Ultimate 2012) - How to deploy windows app store project (Visual Studio Ultimate 2012) 如何使用InstallShield LE为带有SQL Server 2012本地数据库的Visual Studio 2012 Windows窗体应用程序创建setup.exe文件 - How to create a setup.exe file using InstallShield LE for a Visual Studio 2012 Windows Forms Application with SQL Server 2012 Local Database 在Windows上使用Visual Studio 2012或Xamarin Studio在Windows上构建Vocaluxe - Building Vocaluxe on Windows using Visual Studio 2012 or Xamarin Studio on Windows 在Visual Studio Express 2012 for Windows 8中实现C#中的枚举 - Implementing enum in C# in Visual Studio Express 2012 for Windows 8 无法注册Windows Phone的Visual Studio 2012 Express - Can't register Visual Studio 2012 Express for Windows Phone Lightswitch 2012和Windows XP - Lightswitch 2012 and Windows XP
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM