我刚刚安装了Windows Phone开发人员工具,因为我想玩手机并可能发布一些应用程序。
但是,在创建默认项目之后,我在尝试编译时会出现这个:
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.
答案 0 :(得分:3)
刚收到此错误!在我的情况下,我手动将一些预先存在的XAML(其中一些带有全景图)添加到没有任何全景页面的项目中。
基本上我所做的是添加一个新的“Windows Phone全景页面”,这使得VisualStudio包含一些缺少的其他参考,现在项目正在顺利加载。
答案 1 :(得分:2)
在我看来,SDK无法以某种方式安装一些必需的组件。我建议先重新安装SDK,看看你可以从那里获得。