Microsoft.Phone.Tasks 命名空间不可用 [英] Microsoft.Phone.Tasks namespace is not available

查看:22
本文介绍了Microsoft.Phone.Tasks 命名空间不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

命名空间 Microsoft.Phone.Tasks 在我的 Windows Phone 应用程序的 XAML 页面代码隐藏文件中不可用.请看截图.

Namespace Microsoft.Phone.Tasks is not available in XAML page code behind file of my Windows Phone application. Please see the screenshot.

在项目的属性窗口中,我看到:

In the properties windows of the project I see:

Target: Windows Phone 8.1

我是否缺少程序集引用或其他内容?

Am I missing an assembly reference or something?

推荐答案

Windows Phone 8.1 XAML 应用程序没有 Microsoft.Phone.Tasks 命名空间来使用 Windows 运行时 API 制作通用 UI 框架.您仍然可以使用 Windows.ApplicationModel 命名空间编写一些任务.由于您还没有说明要使用哪个任务,因此这里是整个 MSDN 文章的链接.http://code.msdn.microsoft.com/windowsapps/WindowsPhone-Store-81-vs-25c80c2a

Windows Phone 8.1 XAML apps don't have Microsoft.Phone.Tasks namespace to make common UI framework with windows Runtime APIs. Still you can code up a few tasks by using Windows.ApplicationModel namespace. As you havent claried which task you want to use, so here's the link to the whole MSDN article. http://code.msdn.microsoft.com/windowsapps/WindowsPhone-Store-81-vs-25c80c2a

这篇关于Microsoft.Phone.Tasks 命名空间不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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