简体   繁体   English

windows 8.1 平板电脑应用程序开发 - 从哪里开始?

[英]windows 8.1 tablet application development - Where to start?

Okay, I m new to windows development.好的,我是 Windows 开发的新手。 My task to build a small app which will run ONLY on windows 8.1 tablet.我的任务是构建一个只能在 Windows 8.1 平板电脑上运行的小应用程序。 (NO app store, nothing like that) (没有应用商店,没有类似的东西)

After lots of research on Microsoft site, I am lost in the plethora of information and completely confused.在 Microsoft 网站上进行了大量研究后,我迷失在过多的信息中并完全糊涂了。 eg Microsoft says, surface tablet apps can be developed on windows vista/7.例如微软表示,可以在 windows vista/7 上开发 Surface 平板电脑应用程序。 and then they say somewhere else that windows 8.1 apps can only be developed on windows 8.1 (or 8. I forgot) and I would need a developer license.然后他们在其他地方说 Windows 8.1 应用程序只能在 Windows 8.1(或 8。我忘记了)上开发,我需要开发人员许可证。
Questions: 1- is building apps for surface is different than building apps for windows phone?问题:1- 为 Surface 构建应用程序与为 Windows Phone 构建应用程序不同吗? 2- I want to do it in WPF/c#. 2- 我想在 WPF/c# 中做到这一点。 possible?可能的? 3- for an app running on ONLY windows 8.1 Surface tablet, what are hardware and software requirements? 3- 对于仅在 Windows 8.1 Surface 平板电脑上运行的应用程序,有哪些硬件和软件要求? (including windows/ VS version etc.) (包括windows/VS版本等)

Learning something new isn't as issue.学习新东西不是问题。 The issue is if im learning the Right thing which can help me achieve my task.问题是我是否学习了可以帮助我完成任务的正确事物。

Please guide请指导

Thanks in advance.提前致谢。

You will need a developer licence to debug locally on a machine.您将需要开发人员许可证才能在机器上进行本地调试。

You cannot install (sideload) apps onto a device that isn't developer registered, for consumer deployment, everything must come signed and through the store.您不能将(旁加载)应用程序安装到未经开发人员注册的设备上,对于消费者部署,所有内容都必须经过签名并通过商店。 You can override this is business and enterprise version of windows, but afaik this has to be done/deployed at an administrator level.您可以覆盖 Windows 的商业版和企业版,但必须在管理员级别完成/部署。

If you want to develop for windows 8.1, you need to be running 8.1, as deploying and debugging are done on the local machine, then optionally displayed in an emulator-like virtual session, there's no actual 'emulator' for desktop windows runtime apps.如果你想为 windows 8.1 开发,你需要运行 8.1,因为部署和调试是在本地机器上完成的,然后有选择地显示在类似模拟器的虚拟会话中,桌面 windows 运行时应用程序没有实际的“模拟器”。

Previously, yes, surface was winRT, and mobile was silverlight based.以前,是的,Surface 是 winRT,而 mobile 是基于 Silverlight 的。 Now with the shared app platform the process is shared across the two, both are winRT and you can deploy one application across the two.现在使用共享应用程序平台,流程在两者之间共享,两者都是 winRT,您可以在两者之间部署一个应用程序。

First you need to know that there are two types of apps for devices like Surface.首先,您需要知道 Surface 等设备有两种类型的应用程序。 The first one is desktop applications which are commonly referred as WPF Applications.第一个是桌面应用程序,通常称为 WPF 应用程序。 The second one is Modern application commonly called Metro Apps.第二个是现代应用程序,通常称为 Metro Apps。

The desktop applications can run windows 7/8.1/10 where as metro apps can only run on windows 8.1/10.桌面应用程序可以在 Windows 7/8.1/10 上运行,而 Metro 应用程序只能在 Windows 8.1/10 上运行。 If you want to build desktop apps you can build them on windows 7/8.1/10 using visual studio 2010/12/13/15, but if you want to build metro applications you need to build them on 8.1 using VS 2013 for windows 8.1, and for windows 10 you need to use windows 10 and vs 2015.如果您想构建桌面应用程序,您可以使用 Visual Studio 2010/12/13/15 在 Windows 7/8.1/10 上构建它们,但是如果您想构建 Metro 应用程序,您需要使用 VS 2013 for windows 8.1 在 8.1 上构建它们,对于 Windows 10,您需要使用 Windows 10 和 vs 2015。

Your question is a bit confusing.你的问题有点混乱。 If you want to build applications only for windows 8.1 tablet you need to build a metro app and only way to distribute the app is through the App store.如果您只想为 Windows 8.1 平板电脑构建应用程序,您需要构建一个 Metro 应用程序,并且分发该应用程序的唯一方法是通过 App Store。

There are two main versions of Windows 8.1. Windows 8.1 有两个主要版本。 RTM and rest of the versions(like home, pro etc.). RTM 和其他版本(如家庭版、专业版等)。 Tablets running windows 8.1 RTM can not run all kinds of desktop apps.运行 Windows 8.1 RTM 的平板电脑无法运行各种桌面应用程序。 They only run metro apps.他们只运行地铁应用程序。 Hybrid tablets running windows home, pro or enterprise can run both desktop and metro apps.运行 Windows 家庭版、专业版或企业版的混合平板电脑可以同时运行桌面和 Metro 应用程序。

If I am not mistaken surface pro 3 run windows 8.1 pro and can run both wpf and metro apps.如果我没记错的话,surface pro 3 运行 windows 8.1 pro 并且可以运行 wpf 和 Metro 应用程序。

  1. It depends.这取决于。 If you want to build WPF apps it is different from windows phone apps.如果您想构建 WPF 应用程序,它不同于 Windows 手机应用程序。 If you want to build metro apps, it's not that different from WP Apps.如果你想构建 Metro 应用程序,它与 WP Apps 没有什么不同。

  2. As I mentioned, surface pro 3 can run desktop apps.正如我所提到的,surface pro 3 可以运行桌面应用程序。 So WPF/C# apps are possible.所以 WPF/C# 应用程序是可能的。

  3. OS: windows 8.1 and visual studio 2013.操作系统:Windows 8.1 和 Visual Studio 2013。

For further clarification, Check out the difference between different version of windows, and also differences between desktop and modern(metro) apps.如需进一步说明,请查看不同版本 Windows 之间的差异,以及桌面和现代(地铁)应用程序之间的差异。

Starting points for WPF: WPF 的起点:

http://www.codeproject.com/Articles/140611/WPF-Tutorial-Beginning http://www.codeproject.com/Articles/140611/WPF-Tutorial-Beginning

http://www.wpf-tutorial.com/ http://www.wpf-tutorial.com/

See Microsoft Developer Network MSDN请参阅 Microsoft 开发人员网络MSDN

Microsoft Channel9 Tutorial Videos Microsoft Channel9教程视频

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM