我正在寻找 .net core 的迎风报告。我在 goggle 上找到了一些适用于 .net 应用程序的示例,但是当我尝试通过 .net core 创建迎风报告时,它给了我错误。任何建议或
public void ConfigureServices(IServiceCollection services)
{
// Initialize the engine. License and configuration settings in web.config.
Configuration.GetSection("Windwardlicense");
Report.Init();//getting error on this line
services.Configure<CookiePolicyOptions>(options =>
{
// This lambda determines whether user consent for non-essential cookies is needed for a given request.
options.CheckConsentNeeded = context => true;
options.MinimumSameSitePolicy = SameSiteMode.None;
});
services.AddDbContext<ApplicationDbContext>(options =>
options.UseSqlServer(
Configuration.GetConnectionString("DefaultConnection")));
services.AddDefaultIdentity<IdentityUser>()
.AddDefaultUI(UIFramework.Bootstrap4)
.AddEntityFrameworkStores<ApplicationDbContext>();
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
}