为什么 Visual Studio 2010 无法编译默认的 Windows Phone Panorama 应用程序(因为它找不到 Windows.Phone.Controls)?
我刚刚安装了 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.
I just installed the Windows Phone developer tools, because I want to play with the phone and possibly publish some application(s).
However, after creating a default project, I'm presented this when I try to compile:
The tag 'Panorama' does not exist in XML namespace 'clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls'
What mistake have I made?
EDIT: I missed part of the error:
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
刚刚收到此错误!就我而言,我手动将一些预先存在的 XAML(其中一些带有全景)添加到没有任何全景页面的项目中。
基本上我所做的就是添加一个新的“Windows Phone 全景页面”,这使得 VisualStudio 包含了一些缺少的附加引用,现在该项目加载顺利。
Just got this error! In my case I was manually adding some pre-existing XAML's (among them, some with panorama) to a project which didn't have any panorama page.
Basically what I did was add a new "Windows Phone Panorama Page", which made VisualStudio include some additional references that was missing, and now the project is loading smooth.
在我看来,SDK 无法安装某些必需的组件。我建议先重新安装 SDK,然后看看可以从那里获得什么。
It appears to me that the SDK somehow failed to install some of the required components. I would recommend reinstalling the SDK first and see where you can get from there.