工具栏注册方法:
1、将下面的内容保存为 bat文件,放到 ComponentsTools 目录下,然后双击执行。注意,可能需要管理员权限。
忘了一点,components.xml 文件中的 PublicKeyToken 值没改, 在执行下一步操作时,请用记事本打开, 把里面的 b88d1754d700e49a 替换为 57788879a936c57d (这个值在包内的 DevExpress.Key 目录下可以找到 temp.txt内,你也可以用sn命令通过私钥导出,私钥也在那个目录下。如何导,自己百度) [这个操作不做也可,不影响使用,但可能会写官方版本有冲突]
cd /d "%~DP0" set FrameworkPath=%cd%..BinFramework ToolBoxCreator.exe /ini:toolboxcreator.ini /COMPONENTSXML:components.xml /log:regist_log.txt /Path:"%FrameworkPath%"
2、第一步执行完后,虽然可以在工具栏看到控件,但无法正常使用的。需要执行以下操作,
以下操作 2选1
A、以.NET扩展方式添加 DEV程序集, 将下面注册表保存为.REG文件,修改路径为你 DEV程序集的路径,然后双击导入注册表。就可以了。
注:使用此方法,所有项目引用的DEV文件,默认都会被拷贝到项目目录下。
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoft.NETFrameworkv4.0.30319AssemblyFoldersExDevExpress 15.1] @="E:\DevExpress\DevExpress 15.1\Components\Bin\Framework\" [HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoft.NETFrameworkv4.0.30319AssemblyFoldersExDevExpress 15.1Design] @="E:\DevExpress\DevExpress 15.1\Components\Bin\Framework\Design\" [HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoft.NETFrameworkv4.0.30319AssemblyFoldersExDevExpress 15.1zh-Hans] @="E:\DevExpress\DevExpress 15.1\Components\Bin\Framework\zh-Hans\"
B、将Dev的程序集注册到全局程序集即可。