wpftoolkit 全局环境配置问题!!!!!!!

我编译KlayGE引擎的时候出现了[1]所示错误。我从 https://archive.codeplex.com/?p=wpftoolkit 下载了包wpftoolkit.zip,但是不知道怎么配置环境。

网上有对于已有wpf项目添加wpftoolkit的引用的方法,比如 https://blog.csdn.net/wang_h_b/article/details/80309281
但是这个是用Nuget配置的,好像也只是针对已有项目。
\n
我想知道wpftoolkit.zip这个东西怎么添加到环境里,
以解决
[1]这种问题
!!!!!最重要的问题是:
warning MSB3245: 未能解析此引用。
未能找到程序集“Xceed.Wpf.Toolkit”。
_

[------------------------------------------------------------]
错误信息
[1]
F:\study\vs_2017\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: 未能解析此引用。
未能找到程序集“Xceed.Wpf.AvalonDock”。请检查磁盘上是否存在该程序集。 如果您的代码需要此引用,则可能出现编译错误。
[E:\git\engines\KlayGE\KlayGE4.12\KlayGE\Build\vs2017_vc141_win_x64\Tools\MtlEditor\MtlEditor\MtlEditor.csproj]
F:\study\vs_2017\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: 未能解析此引用。
未能找到程序集“Xceed.Wpf.Toolkit”。请检查磁盘上是否存在该程序集。如果您的代码需要此引用,则可能出现编译错误。
[E:\git\engines\KlayGE\KlayGE4.12\KlayGE\Build\vs2017_vc141_win_x64\Tools\MtlEditor\MtlEditor\MtlEditor.csproj]
E:\git\engines\KlayGE\KlayGE4.12\KlayGE\Tools\src\MtlEditor\MtlEditor\MainWindow.xaml(96,14): error MC3074: XML 命名空间“ht
tp://schemas.xceed.com/wpf/xaml/avalondock”中不存在标记“DockingManager”。
行 96 位置 14. [E:\git\engines\KlayGE\KlayGE4.12\KlayGE\Build\vs2017_vc141_win_x64\Tools\MtlEditor\MtlEditor\MtlEditor.csproj]
KGEditorCoreWrapper.vcxproj -> E:\git\engines\KlayGE\KlayGE4.12\KlayGE\Build\vs2017_vc141_win_x64\Tools\KGEditor\KGEd
itorCoreWrapper\Debug\KGEditorCoreWrapper_d.dll
TexViewerCoreWrapper.vcxproj -> E:\git\engines\KlayGE\KlayGE4.12\KlayGE\Build\vs2017_vc141_win_x64\Tools\TexViewer\Te
xViewerCoreWrapper\Debug\TexViewerCoreWrapper_d.dll
F:\study\vs_2017\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: 未能解析此引用。
未能找到程序集“Xceed.Wpf.AvalonDock”。请检查磁盘上是否存在该程序集。 如果您的代码需要此引用,则可能出现编译错误。
[E:\git\engines\KlayGE\KlayGE4.12\KlayGE\Build\vs2017_vc141_win_x64\Tools\KGEditor\KGEditor\KGEditor.csproj]
F:\study\vs_2017\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: 未能解析此引用。
未能找到程序集“Xceed.Wpf.Toolkit”。请检查磁盘上是否存在该程序集。 如果您的代码需要此引用,则可能出现编译错误。
[E:\git\engines\KlayGE\KlayGE4.12\KlayGE\Build\vs2017_vc141_win_x64\Tools\KGEditor\KGEditor\KGEditor.csproj]
F:\study\vs_2017\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: 未能解析此引用。
未能找到程序集“Xceed.Wpf.AvalonDock”。请检查磁盘上是否存在该程序集。 如果您的代码需要此引用,则可能出现编译错误。
[E:\git\engines\KlayGE\KlayGE4.12\KlayGE\Build\vs2017_vc141_win_x64\Tools\TexViewer\TexViewer\TexViewer.csproj]
F:\study\vs_2017\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3245: 未能解析此引用。
未能找到程序集“Xceed.Wpf.Toolkit”。请检查磁盘上是否存在该程序集。 如果您的代码需要此引用,则可能出现编译错误。
[E:\git\engines\KlayGE\KlayGE4.12\KlayGE\Build\vs2017_vc141_win_x64\Tools\TexViewer\TexViewer\TexViewer.csproj]
E:\git\engines\KlayGE\KlayGE4.12\KlayGE\Tools\src\KGEditor\KGEditor\MainWindow.xaml(55,14): error MC3074: XML 命名空间“http
://schemas.xceed.com/wpf/xaml/avalondock”中不存在标记“DockingManager”。
行 55 位置 14. [E:\git\engines\KlayGE\KlayGE4.12\KlayGE\B
uild\vs2017_vc141_win_x64\Tools\KGEditor\KGEditor\KGEditor.csproj]
E:\git\engines\KlayGE\KlayGE4.12\KlayGE\Tools\src\TexViewer\TexViewer\MainWindow.xaml(34,14): error MC3074: XML 命名空间“ht
tp://schemas.xceed.com/wpf/xaml/avalondock”中不存在标记“DockingManager”。
行 34 位置 14. [E:\git\engines\KlayGE\KlayGE4.12\KlayGE\Build\vs2017_vc141_win_x64\Tools\TexViewer\TexViewer\TexViewer.csproj]
[E] Build KlayGE failed.

wpftoolkit,好多wpf控件,有空可以用用

知道问题了。以MltEditor为例。在。。。\KlayGE\Build\cmake\Tools\MtlEditor\MtlEditor目录下的CMakeLists.txt可以找到宏定义
VS_DOTNET_REFERENCE_Xceed.Wpf.AvalonDock "${KLAYGE_BIN_DIR}/Xceed.Wpf.AvalonDock.dll"
VS_DOTNET_REFERENCE_Xceed.Wpf.Toolkit "${KLAYGE_BIN_DIR}/Xceed.Wpf.Toolkit.dll"
这里可以看到dll引用路径为klayge\bin\,也就是说在执行BuildKlayGE.py之前,应该有一步是将所有dll拷贝到bin目录下。但现在没有,所以错了。