2013-04-27 101 views
1

當我打開在「Blend for Visual Studio」中使用MahApps.Metro窗口的項目時,出現大量錯誤。其中之一是(這可能是一個導致所有其他錯誤):Visual Studio項目不能在Blend中工作(參考錯誤)

The name "MetroWindow" does not exist in the namespace "clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" 

這同一個項目工作正常在Visual Studio 2012年。此外,混合所有資源都有一個警告圖標。我怎麼能解決這個問題?

任何幫助,將不勝感激。

+1

我已經沒有機會來測試新的「混合爲Visual Studio 2012」釋放,但我我會看看我是否可以在本地重新創建它。捕獲在這裏:https://github.com/MahApps/MahApps.Metro/issues/4 – 2013-04-28 22:34:20

回答

3

我修好了。我改變了所有項目的調試平臺,我的解決方案,以Any CPU這樣的:

  1. 開盤項目在Visual Studio和混合
  2. 翻開Configuration Manager(下拉調試/發佈的「開始」按鈕旁邊的菜單)
  3. 其中一個項目的調試平臺的設置爲x86所以我點擊<new...>
  4. 設置New PlatformAny CPU
  5. 設置Copy Settings From<Empty>
  6. 點擊了Ok
  7. 混合然後問我重新加載項目,我點擊Yes To All
+0

謝謝你離開你的解決方案。 – JeremyK 2014-05-29 16:31:38

相關問題