2011-04-22 46 views
0

我刚刚安装了Windows Phone开发人员工具,因为我想用手机玩并可能发布一些应用程序。为什么Visual Studio 2010无法编译默认的Windows Phone Panorama应用程序(因为找不到Windows.Phone.Controls)?

但是,创建一个默认的项目后,我提出了这个当我尝试编译:

The tag 'Panorama' does not exist in XML namespace 'clr-namespace:Microsoft.Phone.Controls;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. 

回答

2

在我看来,该SDK不知何故未能安装某些必需的组件。我会建议先重新安装SDK,然后看看从哪里可以得到。

+0

这真的很奇怪。修复安装做了伎俩。 – 2011-04-22 05:00:24

3

刚刚得到这个错误!在我的情况下,我手动添加了一些预先存在的XAML(其中有些是全景图),这个项目没有任何全景图页面。

基本上我所做的是添加一个新的“Windows Phone Panorama页面”,这使VisualStudio包含了一些缺少的其他引用,现在该项目正在加载平滑。

+0

我刚刚建立了股票启动项目。没有为我编辑的XAML。 – 2011-07-14 21:54:06

+0

这对我来说伎俩,谢谢! – 2013-06-29 21:03:57

相关问题