先找到安装目录,然后使用dnspy打开RedGate.Client.ActivationPluginShim.dll。
在RedGate.Client.ActivationPluginShim.dll找到RedGate.Client.ActivationPlugin.Shared.LicenceInformation.
修改public LicenceState LicenceState属性为:
public LicenceState LicenceState { get { return LicenceState.Licensed; } }
找到构造函数,修改成:
public LicenceInformation(LicenceState licenceState, string description, IEnumerable<LicensedProduct> licencedProducts, IEnumerable<IUsageConstraint> usageConstraints, DateTime? expiry) { this.LicensedProducts = new List<LicensedProduct>(licencedProducts ?? Enumerable.Empty<LicensedProduct>()); this.UsageConstraints = usageConstraints; this.LicenceExpiry = expiry; this.Description = description; if (this.LicensedProducts.Contains(null)) { throw new ArgumentException("Contained null", "licencedProducts"); } }
找到方法FeaturesForProduct:
public IEnumerable<ProductFeature> FeaturesForProduct(ProductInformation product) { return new ProductFeature[] { new ProductFeature("professional") }; }
保存RedGate.Client.ActivationPluginShim.dll并替换旧的,再启动工具试试?
----
原版试用安装包
链接: https://pan.baidu.com/s/1Wji6PcuI6TehBgYKdiwAoA?pwd=m9w4 提取码: m9w4