Changed to the RainCrab.Plugins version w/ fixes

This commit is contained in:
the1mason 2025-04-24 01:06:32 +05:00
parent f2d24a1545
commit 55df5e3525
8 changed files with 28 additions and 31 deletions

View File

@ -10,7 +10,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="RainCrab.Plugins.AspNet" Version="0.1.11"> <PackageReference Include="RainCrab.Plugins.AspNet" Version="0.2.0">
<ExcludeAssets>runtime</ExcludeAssets> <ExcludeAssets>runtime</ExcludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="TestLib.Writer" Version="1.0.0" /> <PackageReference Include="TestLib.Writer" Version="1.0.0" />

View File

@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.Razor"> <Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>g <PropertyGroup>
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
@ -9,7 +9,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="RainCrab.Plugins.AspNet" Version="0.1.11"> <PackageReference Include="RainCrab.Plugins.AspNet" Version="0.2.0">
<ExcludeAssets>runtime</ExcludeAssets> <ExcludeAssets>runtime</ExcludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="TestLib.Writer" Version="2.0.0" /> <PackageReference Include="TestLib.Writer" Version="2.0.0" />

View File

@ -15,7 +15,7 @@
<PackageReference Include="Markdig" Version="0.37.0" /> <PackageReference Include="Markdig" Version="0.37.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.8" /> <PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.8" />
<PackageReference Include="Pek.Markdig.HighlightJs" Version="0.5.1" /> <PackageReference Include="Pek.Markdig.HighlightJs" Version="0.5.1" />
<PackageReference Include="RainCrab.Plugins.AspNet" Version="0.1.11" /> <PackageReference Include="RainCrab.Plugins.AspNet" Version="0.2.0" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@ -8,7 +8,7 @@
".NETCoreApp,Version=v8.0": { ".NETCoreApp,Version=v8.0": {
"Plugin1/1.0.0": { "Plugin1/1.0.0": {
"dependencies": { "dependencies": {
"RainCrab.Plugins.AspNet": "0.1.11", "RainCrab.Plugins.AspNet": "0.2.0",
"TestLib.Writer": "1.0.0" "TestLib.Writer": "1.0.0"
}, },
"runtime": { "runtime": {
@ -173,13 +173,13 @@
"System.Buffers": "4.6.0" "System.Buffers": "4.6.0"
} }
}, },
"RainCrab.Plugins.AspNet/0.1.11": { "RainCrab.Plugins.AspNet/0.2.0": {
"dependencies": { "dependencies": {
"Microsoft.AspNetCore.Hosting": "2.3.0", "Microsoft.AspNetCore.Hosting": "2.3.0",
"RainCrab.Plugins.Base": "0.1.7" "RainCrab.Plugins.Base": "0.2.0"
} }
}, },
"RainCrab.Plugins.Base/0.1.7": { "RainCrab.Plugins.Base/0.2.0": {
"dependencies": { "dependencies": {
"Microsoft.Extensions.Logging.Abstractions": "8.0.2" "Microsoft.Extensions.Logging.Abstractions": "8.0.2"
} }
@ -386,19 +386,19 @@
"path": "microsoft.net.http.headers/2.3.0", "path": "microsoft.net.http.headers/2.3.0",
"hashPath": "microsoft.net.http.headers.2.3.0.nupkg.sha512" "hashPath": "microsoft.net.http.headers.2.3.0.nupkg.sha512"
}, },
"RainCrab.Plugins.AspNet/0.1.11": { "RainCrab.Plugins.AspNet/0.2.0": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-6o4oboIqWXIMEWyW5cVF8dCTLWImyuYjMOqOAWf7WaqdnaEgINZA2SaRQ6AqKvo1/SbVTD3H3n+grcRUAUnlIQ==", "sha512": "sha512-1unomK6qcPFiZ1qeK7lvsp3vhc1jGHoG4TMnX87UQPxMESHJRIfX0ZweDATsHfqUqkQ2yhNaFf2zMx2yNALEDg==",
"path": "raincrab.plugins.aspnet/0.1.11", "path": "raincrab.plugins.aspnet/0.2.0",
"hashPath": "raincrab.plugins.aspnet.0.1.11.nupkg.sha512" "hashPath": "raincrab.plugins.aspnet.0.2.0.nupkg.sha512"
}, },
"RainCrab.Plugins.Base/0.1.7": { "RainCrab.Plugins.Base/0.2.0": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-NTQdJyPxDaKKcURU+c625yS+9R0TuNbefXv9TTQ3LhsF+4TCHko0kmn0IOw4HSMuTi+jwdt8tgz2xwl4sgZYoA==", "sha512": "sha512-VzqHOxO0V/5kBX27b0T9EojJejE1y6554teqlDHw1laKzD2G7FL+kxPv6UIR3HSJFMHGTQmw+o22QWGTRjqKMg==",
"path": "raincrab.plugins.base/0.1.7", "path": "raincrab.plugins.base/0.2.0",
"hashPath": "raincrab.plugins.base.0.1.7.nupkg.sha512" "hashPath": "raincrab.plugins.base.0.2.0.nupkg.sha512"
}, },
"System.Buffers/4.6.0": { "System.Buffers/4.6.0": {
"type": "package", "type": "package",

View File

@ -8,7 +8,7 @@
".NETCoreApp,Version=v8.0": { ".NETCoreApp,Version=v8.0": {
"Plugin2/1.0.0": { "Plugin2/1.0.0": {
"dependencies": { "dependencies": {
"RainCrab.Plugins.AspNet": "0.1.11", "RainCrab.Plugins.AspNet": "0.2.0",
"TestLib.Writer": "2.0.0" "TestLib.Writer": "2.0.0"
}, },
"runtime": { "runtime": {
@ -173,13 +173,13 @@
"System.Buffers": "4.6.0" "System.Buffers": "4.6.0"
} }
}, },
"RainCrab.Plugins.AspNet/0.1.11": { "RainCrab.Plugins.AspNet/0.2.0": {
"dependencies": { "dependencies": {
"Microsoft.AspNetCore.Hosting": "2.3.0", "Microsoft.AspNetCore.Hosting": "2.3.0",
"RainCrab.Plugins.Base": "0.1.7" "RainCrab.Plugins.Base": "0.2.0"
} }
}, },
"RainCrab.Plugins.Base/0.1.7": { "RainCrab.Plugins.Base/0.2.0": {
"dependencies": { "dependencies": {
"Microsoft.Extensions.Logging.Abstractions": "8.0.2" "Microsoft.Extensions.Logging.Abstractions": "8.0.2"
} }
@ -386,19 +386,19 @@
"path": "microsoft.net.http.headers/2.3.0", "path": "microsoft.net.http.headers/2.3.0",
"hashPath": "microsoft.net.http.headers.2.3.0.nupkg.sha512" "hashPath": "microsoft.net.http.headers.2.3.0.nupkg.sha512"
}, },
"RainCrab.Plugins.AspNet/0.1.11": { "RainCrab.Plugins.AspNet/0.2.0": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-6o4oboIqWXIMEWyW5cVF8dCTLWImyuYjMOqOAWf7WaqdnaEgINZA2SaRQ6AqKvo1/SbVTD3H3n+grcRUAUnlIQ==", "sha512": "sha512-1unomK6qcPFiZ1qeK7lvsp3vhc1jGHoG4TMnX87UQPxMESHJRIfX0ZweDATsHfqUqkQ2yhNaFf2zMx2yNALEDg==",
"path": "raincrab.plugins.aspnet/0.1.11", "path": "raincrab.plugins.aspnet/0.2.0",
"hashPath": "raincrab.plugins.aspnet.0.1.11.nupkg.sha512" "hashPath": "raincrab.plugins.aspnet.0.2.0.nupkg.sha512"
}, },
"RainCrab.Plugins.Base/0.1.7": { "RainCrab.Plugins.Base/0.2.0": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-NTQdJyPxDaKKcURU+c625yS+9R0TuNbefXv9TTQ3LhsF+4TCHko0kmn0IOw4HSMuTi+jwdt8tgz2xwl4sgZYoA==", "sha512": "sha512-VzqHOxO0V/5kBX27b0T9EojJejE1y6554teqlDHw1laKzD2G7FL+kxPv6UIR3HSJFMHGTQmw+o22QWGTRjqKMg==",
"path": "raincrab.plugins.base/0.1.7", "path": "raincrab.plugins.base/0.2.0",
"hashPath": "raincrab.plugins.base.0.1.7.nupkg.sha512" "hashPath": "raincrab.plugins.base.0.2.0.nupkg.sha512"
}, },
"System.Buffers/4.6.0": { "System.Buffers/4.6.0": {
"type": "package", "type": "package",

View File

@ -4,11 +4,8 @@ using FastBlog.Web.Middlewares;
using Microsoft.AspNetCore.RateLimiting; using Microsoft.AspNetCore.RateLimiting;
using RainCrab.Plugins.AspNet; using RainCrab.Plugins.AspNet;
using RainCrab.Plugins.AspNet.Extensions; using RainCrab.Plugins.AspNet.Extensions;
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);
if (Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == Environments.Development) if (Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == Environments.Development)
builder.Services.AddControllersWithViews().AddRazorRuntimeCompilation(); builder.Services.AddControllersWithViews().AddRazorRuntimeCompilation();
else else