VisualSVN破解方法
1、找到VisualSVN扩展的安装路径
一般为:C:\Users\用户名\AppData\Local\Microsoft\VisualStudio\17.0_5de15453(vs版本号)\Extensions\bdtl5px5.kuq(VisualSVN安装ID)
2、使用dnspy修改目录下的VisualSVN.Core.L.dll文件。
把VisualSVN.Core.Licensing.LicenseConverter.KeyToLicense方法内的代码改为如下即可。
public static License KeyToLicense(IDecoder decoder, string key)
{
try
{
return new License
{
Version = 2,
LicenseId = Guid.NewGuid(),
StartTime = DateTime.Parse("2000-01-01 00:00:00"),
EndTime = DateTime.Parse("2099-12-31 23:59:59"),
Type = LicenseType.Professional,
LicensedTo = "Professional User",
Capacity = 1,
Binding = LicenseBinding.Seat
};
}
catch (Exception ex)
{
Log.ReportException(ex);
}
return null;
}

OK完成!