码迷,mamicode.com
首页 > Windows程序 > 详细

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

时间:2014-09-28 13:08:12      阅读:545      评论:0      收藏:0      [点我收藏+]

标签:io   ar   strong   on   c   r   window   as   程序   

错误    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 引用即可解决。

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

标签:io   ar   strong   on   c   r   window   as   程序   

原文地址:http://www.cnblogs.com/xpvincent/p/3997909.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!