我刚刚安装了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.
这真的很奇怪。修复安装做了伎俩。 – 2011-04-22 05:00:24