一、找到插件安装目录
C:/用户/PC20150310/AppData/Local/Microsoft/VisualStudio/15.0/Extensions
二、准备反汇编工具 ildasm.exe,找到VisualSVN的安装路径,一般先备份,在备份里面操作
三、转储 , 得到同名的il文件:VisualSVN.Core.L.il,用记事本打开得到的 VisualSVN.Core.L.il 文件,在其中搜索 “KeyToLicenseUnsafe”,找到KeyToLicenseUnsafe方法,大概在3296行附近。查找并替换成下面的代码,然后保存
四、替换代码
.method public hidebysig static class VisualSVN.Core.Licensing.License
KeyToLicenseUnsafe(class VisualSVN.Core.IDecoder decoder,
string key) cil managed
{
// 代码大小 69 (0x45)
.locals init (class VisualSVN