2017-07-16 61 views
0

在我當前的UWP應用程序中,我收到了19062個錯誤,所有這些錯誤都以「.winmd文件(文件名)包含其根名稱空間(名稱空間名稱)之外的類型(類型名稱) 「。完整的錯誤代碼示例如下所示。在Visual Studio 2017中的UWP應用程序出錯

我已經嘗試以下操作來解決問題:

  • 重新啓動Visual Studio的
  • 重建方案
  • 重新安裝最新的Windows SDK的
  • 版本重新啓動我的電腦

該項目前幾天建設得很好。從那時起,我沒有對我的電腦做任何事情,這會導致我的解決方案出現這樣的問題。

下面是錯誤代碼示例:

"The .winmd file 'Windows.Foundation.UniversalApiContract.winmd' contains type 'Windows.ApplicationModel.Search.ISearchQueryLinguisticDetails' outside its root namespace 'Windows.Foundation.UniversalApiContract'. Make sure that all public types appear under a common root namespace that matches the output file name."

"The .winmd file 'Windows.Foundation.UniversalApiContract.winmd' contains type 'Windows.Graphics.Display.DisplayInformation'. The use of the Windows namespace is reserved."

"The .winmd file 'Windows.Foundation.UniversalApiContract.winmd' contains type 'Windows.UI.Xaml.Automation.IValuePatternIdentifiers' outside its root namespace 'Windows.Foundation.UniversalApiContract'. Make sure that all public types appear under a common root namespace that matches the output file name."

我是比較新的UWP,和我沒有解釋錯誤。任何幫助將非常感激。預先感謝您的幫助。

約旦。

+0

您是否清理過該項目? –

+0

不,我沒有。這解決了它。如前所述,我對此比較陌生。非常感謝您的幫助。 –

回答

0

該項目需要清理以避免這些錯誤。 OP在評論中證實這是一個原因。

相關問題