diff --git a/.github/workflows/pack.yml b/.github/workflows/pack.yml
index 5e45cac23..260440e46 100644
--- a/.github/workflows/pack.yml
+++ b/.github/workflows/pack.yml
@@ -16,7 +16,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
- dotnet-version: 3.1.403
+ dotnet-version: 5.0.100
- name: Publish to Nuget
env:
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index ddaeaf093..32646cd66 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -16,7 +16,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
- dotnet-version: 3.1.402
+ dotnet-version: 5.0.100
- name: Publish wasm
run: |
diff --git a/src/BootstrapBlazor.Docs/BootstrapBlazor.Docs.csproj b/src/BootstrapBlazor.Docs/BootstrapBlazor.Docs.csproj
index b5a17fd31..ae73cd740 100644
--- a/src/BootstrapBlazor.Docs/BootstrapBlazor.Docs.csproj
+++ b/src/BootstrapBlazor.Docs/BootstrapBlazor.Docs.csproj
@@ -1,9 +1,11 @@
- netstandard2.1
- Library
- 3.0
+ net5.0
+
+
+
+
diff --git a/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj b/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj
index a7db9b53a..0fcf7edab 100644
--- a/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj
+++ b/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj
@@ -1,10 +1,14 @@
- netcoreapp3.1
+ net5.0
true
+
+
+
+
diff --git a/src/BootstrapBlazor.Shared/BootstrapBlazor.Shared.csproj b/src/BootstrapBlazor.Shared/BootstrapBlazor.Shared.csproj
index c2c0c9a29..f87e65a26 100644
--- a/src/BootstrapBlazor.Shared/BootstrapBlazor.Shared.csproj
+++ b/src/BootstrapBlazor.Shared/BootstrapBlazor.Shared.csproj
@@ -1,18 +1,20 @@
- netstandard2.1
- Library
- 3.0
+ net5.0
true
- 3.1.0
+ 5.0.0
+
+
+
+
-
+
diff --git a/src/BootstrapBlazor.WebAssembly.ClientHost/BootstrapBlazor.WebAssembly.ClientHost.csproj b/src/BootstrapBlazor.WebAssembly.ClientHost/BootstrapBlazor.WebAssembly.ClientHost.csproj
index 37863aca1..1dc67bdf2 100644
--- a/src/BootstrapBlazor.WebAssembly.ClientHost/BootstrapBlazor.WebAssembly.ClientHost.csproj
+++ b/src/BootstrapBlazor.WebAssembly.ClientHost/BootstrapBlazor.WebAssembly.ClientHost.csproj
@@ -1,16 +1,14 @@
-
+
- netstandard2.1
- 3.0
+ net5.0
service-worker-assets.js
-
-
-
-
+
+
+
@@ -18,8 +16,8 @@
-
-
+
+
diff --git a/src/BootstrapBlazor.WebAssembly.ServerHost/BootstrapBlazor.WebAssembly.ServerHost.csproj b/src/BootstrapBlazor.WebAssembly.ServerHost/BootstrapBlazor.WebAssembly.ServerHost.csproj
index 61169fb7c..3ac5ccbec 100644
--- a/src/BootstrapBlazor.WebAssembly.ServerHost/BootstrapBlazor.WebAssembly.ServerHost.csproj
+++ b/src/BootstrapBlazor.WebAssembly.ServerHost/BootstrapBlazor.WebAssembly.ServerHost.csproj
@@ -1,12 +1,12 @@
- netcoreapp3.1
+ net5.0
true
-
+
-
+
diff --git a/src/BootstrapBlazor/BootstrapBlazor.csproj b/src/BootstrapBlazor/BootstrapBlazor.csproj
index 9fa2e1eed..3d4e9df96 100644
--- a/src/BootstrapBlazor/BootstrapBlazor.csproj
+++ b/src/BootstrapBlazor/BootstrapBlazor.csproj
@@ -1,19 +1,21 @@
- netstandard2.1
- Library
- 3.0
+ net5.0
true
logo.png
- 3.1.29-beta02
+ 5.0.0-beta01
更新日志:https://gitee.com/LongbowEnterprise/BootstrapBlazor/wikis
-
-
-
+
+
+
+
+
+
+
diff --git a/src/BootstrapBlazor/Localization/Json/Internal/StringLocalizer.cs b/src/BootstrapBlazor/Localization/Json/Internal/StringLocalizer.cs
index 2d3feac8f..1ec089ffc 100644
--- a/src/BootstrapBlazor/Localization/Json/Internal/StringLocalizer.cs
+++ b/src/BootstrapBlazor/Localization/Json/Internal/StringLocalizer.cs
@@ -1,7 +1,5 @@
using Microsoft.Extensions.Localization;
-using System;
using System.Collections.Generic;
-using System.Globalization;
namespace BootstrapBlazor.Localization.Json
{
@@ -22,8 +20,5 @@ namespace BootstrapBlazor.Localization.Json
public LocalizedString this[string name, params object[] arguments] => _localizer[name, arguments];
public IEnumerable GetAllStrings(bool includeParentCultures) => _localizer.GetAllStrings(includeParentCultures);
-
- [Obsolete("This method is obsolete. Use `CurrentCulture` and `CurrentUICulture` instead.")]
- public IStringLocalizer WithCulture(CultureInfo culture) => _localizer.WithCulture(culture);
}
}
diff --git a/test/UnitTest/UnitTest.csproj b/test/UnitTest/UnitTest.csproj
index aa1a8f782..deba05655 100644
--- a/test/UnitTest/UnitTest.csproj
+++ b/test/UnitTest/UnitTest.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net5.0
false