尝试创建应用栏时缺少命名空间 Phone

Missing namespace Phone when trying to create an app bar

我开始 Windows Phone 开发。

我正在尝试关注 this Guide 以便在我的页面中创建应用栏。但是在第一步中,当我添加行

using Microsoft.Phone.Shell;

编译器抱怨

Error   1   The type or namespace name 'Phone' does not exist 
            in the namespace 'Microsoft' (are you missing an assembly reference?)

我使用 Visual Studio 2013 社区和 Blank App (Windows Phone) 模板创建了我的项目。

我已经检查并使用 Blank App (Windows Phone Silverlight) 模板不会发生这种情况,但我在其他帖子中读到 silverlight 是一个较旧的系统,所以我想我不必使用它

我该如何解决这个问题?

在 msdn 文章中,它说它只支持 WP8WPSilverlight 的 8.1 版本。您创建的应用程序是什么?

通常 Blank App 会创建一个 Runtime WP 应用程序(正常的 XAML 不是 Silverlight),8.1 版本理想情况下不支持您的命名空间上文提到的。

Windows Phone RT 的应用程序必须利用其他 AppBar class

请查看以下文章 Quickstart: adding app bars (XAML) 以获取有关现代应用栏的更多信息。