WPFToolkit compilation and etc..

本文探讨了WPF Toolkit开源项目的编译难题,特别是针对依赖不同版本Microsoft.Windows.Design.Extensibility组件导致的问题。文中详细介绍了如何处理由于VS2008与VS2010之间的不兼容引发的编译错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

WPFToolkit is an open source project that provide some useful WPF control and etc.


You can download the WPFToolkit from this location.


There are binaries version and there are source code version as well. If you want to compile the code, you may want to start from the source code version.


However,the code may not compile off the shelf.


Things that prevent it to compile including the following error: 

   "The type or namespace name 'IProvideAttributeTable' could not be found (are you missing a using directive or an assembly reference?)"

Most of the error is happening on the  Design project. The design proejcts include the following.

  • Controls.DataVisualization.Toolkit.Expression.Design
  • Controls.DataVisualization.Toolkit.VisualStudio.Design
  • Controls.DataVisualization.Toolkit.Toolkit.Design
  • Controls.Input.Toolkit.Design
  • Controls.Input.Toolkit.VisualStudio.Design


The problem is that those designer projcts depends on the following assemblies.


  • Microsoft.Windows.Design
  • Microsoft.Windows.Design.Extensibility
  • Microsoft.Windows.Design.Interaction

However, there are two version of Microsoft.Windows.Design.Extensibility, one is provided in the VS2008, and you can find under

    C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies\Microsoft.Windows.Design.Extensibility.dll

, the other is defined in VS2010, and you can find it under

    C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies\Microsoft.Windows.Design.Extensibility.dll


The IProvideAttributeTable is only available in VS2010 Microsoft.Windows.Design.Extensibility.dll, and DefaultInitializer only exist under VS 2008 Microsoft.Windows.Design.Extensibility.dll...


Unfortunately, the project Controls.DataVisualization.Toolkit.Design requires both IProvideAttributeTable  and DefaultInitializer ...  You may unload the project Controls.DataVisualization.Toolkit.Design.csproj.


You may need to have 


alias extern ....




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值