类型“System.Windows.Markup.IQueryAmbient”在未被引用的程序集中定义


错误    1    类型“System.Windows.Markup.IQueryAmbient”在未被引用的程序集中定义。必须添加对程序集“System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”的引用。    D:\VisualStudio\2013\TestClient\TestClient\Class1.cs    6    18    TestClient


错误    2    未能在命名空间“System.Windows.Markup”中找到类型名称“IComponentConnector”。此类型已转发到程序集“System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”。请考虑添加对该程序集的引用。    D:\VisualStudio\2013\TestClient\TestClient\obj\Debug\UserControl1.g.cs    41    100    TestClient

 

在程序中添加 System.Xaml.dll 引用即可解决。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM