WPFToolkit compilation and etc..

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 ....




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章