Windows 8 在system.windows.dll模块中找不到类型system.windows.controls.control

Windows 8 在system.windows.dll模块中找不到类型system.windows.controls.control,windows-8,windows-runtime,microsoft-metro,windows-phone,winrt-xaml,Windows 8,Windows Runtime,Microsoft Metro,Windows Phone,Winrt Xaml,我将Windows Phone 8应用程序转换为Windows应用商店应用程序。 所有的更改都进行得很顺利,我能够删除所有的错误。 最后,当我尝试构建我的应用程序时,出现以下错误: 在文件C:\Program Files(x86)\MSBuild\Microsoft\WindowsXaml\v11.0\Microsoft.windows.UI.Xaml.Common.targets中“在模块system.windows.dll中找不到类型system.windows.controls.contr

我将Windows Phone 8应用程序转换为Windows应用商店应用程序。 所有的更改都进行得很顺利,我能够删除所有的错误。 最后,当我尝试构建我的应用程序时,出现以下错误:

在文件C:\Program Files(x86)\MSBuild\Microsoft\WindowsXaml\v11.0\Microsoft.windows.UI.Xaml.Common.targets中“在模块system.windows.dll中找不到类型system.windows.controls.control”


错误是说您正在使用
控件
,它不是
WinRT
System.Windows.dll
的一部分。简而言之,该错误是由于该控件仅适用于Windows Phone

请编写引发此类错误的代码。我无法找到代码的哪一部分生成此错误。。在文件“Microsoft.Windows.UI.Xaml.Common.targets”中,只有此代码的行“错误是说您使用的是
Control
,它不是
WinRT
system.Windows.dll
的一部分。简言之,此错误是由于该控件仅适用于Windows Phone。非常感谢在导致问题的5个文件中使用Microsoft.Phone.Controls..删除这些导入后生成成功..好的,我将我的评论作为答案发布。如果您将其标记为已接受答案,我将非常高兴。