NL.OpenCore
3.1.8
dotnet add package NL.OpenCore --version 3.1.8
NuGet\Install-Package NL.OpenCore -Version 3.1.8
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NL.OpenCore" Version="3.1.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NL.OpenCore --version 3.1.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NL.OpenCore, 3.1.8"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NL.OpenCore as a Cake Addin #addin nuget:?package=NL.OpenCore&version=3.1.8 // Install NL.OpenCore as a Cake Tool #tool nuget:?package=NL.OpenCore&version=3.1.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Config
"AppSettings": {
"Auth": {
"Issuer": "http://localhost:64064/",
"Audience": "D1C90BEE-8C54-4D6B-8D46-9596BFB4F28B",
"SecurityKey": "abcdabcdabcdabcdabcdabcdabcdabcd"
}
},
"ConnectionStrings": {
"NLOpenCoreDB": "Data Source=*;Initial Catalog=*;User ID=sa;Password=*"
},
"Logging": {
"Serilog": {
"WriteTo": [
{
"Name": "File",
"Args": {
"path": "Logs/log.txt",
"rollingInterval": "Day",
"outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj} {Properties:j}{NewLine}{Exception}"
}
}
],
"Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ],
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Information",
"System": "Information"
}
}
},
"LogLevel": {
"Default": "Warning"
}
}
Use
using NL.OpenCore.Web;
public void ConfigureServices(IServiceCollection services)
{
services.AddNLMvc(option =>
{
option.ConnectionString = this.Configuration.GetConnectionString("NLOpenCoreDB");
option.AppConfigurationSection = this.Configuration.GetSection("AppSettings:App");
option.LogingConfigurationSection = this.Configuration.GetSection("Logging");
option.AutoRegistrarBusiness = true;
option.Audience = this.Configuration["AppSettings:Auth:Audience"];
option.Issuer = this.Configuration["AppSettings:Auth:Issuer"];
option.SecurityKey = this.Configuration["AppSettings:Auth:SecurityKey"];
});
...
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
...
app.UseNLMvc(builder => builder.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader());
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- Magick.NET-Q16-AnyCPU (>= 7.22.0)
- Microsoft.AspNetCore.Authentication (>= 2.2.0)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 3.1.8)
- Microsoft.AspNetCore.Identity (>= 2.2.0)
- Microsoft.AspNetCore.Identity.EntityFrameworkCore (>= 3.1.8)
- Microsoft.EntityFrameworkCore (>= 3.1.8)
- Serilog (>= 2.10.0)
- Serilog.AspNetCore (>= 3.4.0)
- Serilog.Sinks.File (>= 4.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
1. AspnetCore 3.1.8.
2. JwtToken expireDays -> expireSeconds
3. Fixed Dll DI issue: builder.AddMvcCore().