在有源代码的情况下注释ComponentArt的许可证检查,彻底无风险使用ComponentArt

来源:互联网 发布:2016淘宝c店运营方案 编辑:程序博客网 时间:2024/05/01 06:47

 

打开解决方案

LicensingRedistributeLicenseProvider.cs, 



找到

if(strAppKey == strFoundAppKey) 
return new ComponentArt.Licensing.Providers.RedistributableLicense(this"The App"); 
else 
return false;



改成

if(strAppKey == strFoundAppKey) 
return new ComponentArt.Licensing.Providers.RedistributableLicense(this"The App"); 
else 
return new ComponentArt.Licensing.Providers.RedistributableLicense(this"The App"); 



另外
BaseClasses/WebControl.cs
找到

protected override void Render(HtmlTextWriter output

)
将如下语句注释掉

if (!IsLicensed())
{
RenderRedistributableWarning(output); 
return
}



重新编译就OK啦 

原创粉丝点击