Visual studio 2010 为什么可以';Visual Studio 2010编译默认的Windows Phone Panorama应用程序(因为它无法找到Windows.Phone.Controls)?

Visual studio 2010 为什么可以';Visual Studio 2010编译默认的Windows Phone Panorama应用程序(因为它无法找到Windows.Phone.Controls)?,visual-studio-2010,windows-phone-7,windows-phone,Visual Studio 2010,Windows Phone 7,Windows Phone,我刚刚安装了Windows Phone developer工具,因为我想玩手机,并可能发布一些应用程序 但是,在创建默认项目后,当我尝试编译时,会出现以下情况: The tag 'Panorama' does not exist in XML namespace 'clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls' XML命名空间“clr命名空间:Microsoft.Phone.Controls”中不

我刚刚安装了Windows Phone developer工具,因为我想玩手机,并可能发布一些应用程序

但是,在创建默认项目后,当我尝试编译时,会出现以下情况:

The tag 'Panorama' does not exist in XML namespace 'clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls' XML命名空间“clr命名空间:Microsoft.Phone.Controls”中不存在标记“Panorama”;assembly=Microsoft.Phone.Controls' 我犯了什么错误

编辑:我遗漏了部分错误:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.Phone.Controls". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. For SearchPath "{TargetFrameworkDirectory}". Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone\Microsoft.Phone.Controls.dll", but it didn't exist. Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone\Microsoft.Phone.Controls.exe", but it didn't exist. For SearchPath "{RawFileName}". Considered treating "Microsoft.Phone.Controls" as a file name, but it didn't exist. For SearchPath "Bin\Debug\". Considered "Bin\Debug\Microsoft.Phone.Controls.dll", but it didn't exist. Considered "Bin\Debug\Microsoft.Phone.Controls.exe", but it didn't exist. C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9):警告MSB3245:无法解析此引用。找不到程序集“Microsoft.Phone.Controls”。检查以确保磁盘上存在程序集。如果代码需要此引用,则可能会出现编译错误。 对于搜索路径“{TargetFrameworkDirectory}”。 考虑了“C:\Program Files(x86)\Reference Assembly\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone\Microsoft.Phone.Controls.dll”,但它不存在。 考虑了“C:\Program Files(x86)\Reference Assembly\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone\Microsoft.Phone.Controls.exe”,但它不存在。 用于搜索路径“{RawFileName}”。 考虑将“Microsoft.Phone.Controls”作为文件名,但它不存在。 用于搜索路径“Bin\Debug\”。 考虑了“Bin\Debug\Microsoft.Phone.Controls.dll”,但它不存在。 考虑了“Bin\Debug\Microsoft.Phone.Controls.exe”,但它不存在。
在我看来,SDK不知何故未能安装某些必需的组件。我建议您首先重新安装SDK,然后看看您可以从哪里获得帮助。

在我看来,SDK不知何故未能安装某些必需的组件。我建议您首先重新安装SDK,然后看看您可以从那里获得什么。

刚刚遇到这个错误!在我的例子中,我手动将一些预先存在的XAML(其中一些带有panorama)添加到一个没有任何panorama页面的项目中


基本上,我所做的就是添加了一个新的“Windows Phone全景页面”,这使得VisualStudio包含了一些缺失的附加参考,现在项目正在顺利加载。

刚刚出现了这个错误!在我的例子中,我手动将一些预先存在的XAML(其中一些带有panorama)添加到一个没有任何panorama页面的项目中


基本上,我所做的是添加了一个新的“Windows Phone全景页面”,这使得VisualStudio包含了一些缺失的附加参考,现在项目正在顺利加载。

我刚刚创建了一个库存启动项目。没有为我编辑过XAML。我只是在构建一个库存启动项目。没有为我编辑的XAML。