【发布时间】:2017-04-28 01:45:36
【问题描述】:
我正在尝试构建我的项目,但不断收到以下错误消息:
Error 1 The type 'System.Windows.Markup.IQueryAmbient' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. C:\Users\Geoff\Git\My Shopping List\My Shopping List\RunWindowItemList.xaml.cs 24 26 My Shopping List
Error 2 The type name 'IComponentConnector' could not be found in the namespace 'System.Windows.Markup'. This type has been forwarded to assembly 'System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Consider adding a reference to that assembly. C:\Users\Geoff\Git\My Shopping List\My Shopping List\obj\Debug\RunWindowItemList.g.cs 40 91 My Shopping List
我尝试在 MSDN 上查找如何纠正这种情况,但我没有找到任何东西。如果有人可以帮助我提供解决方案或有解决方案的文章,我将不胜感激!
【问题讨论】:
-
在 vs 2012 中总是对我有用的是终止设计流程,XDecProc.. 希望它在 2013 年仍然有用
标签: c# .net wpf xaml compiler-errors