diff --git a/Directory.Build.props b/Directory.Build.props
index 068890c..6bed1b0 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -17,31 +17,8 @@
true
latest
false
-
-
- SYSLIB0014;NU1901;NU1902;NU1903;NU1904
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/README.md b/README.md
index 00186f7..e50501d 100644
--- a/README.md
+++ b/README.md
@@ -378,7 +378,7 @@ This adds the package to your _.csproj_ file
- netcoreapp2.0
+ netcoreapp3.1
diff --git a/src/NetEscapades.AspNetCore.SecurityHeaders.TagHelpers/NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.csproj b/src/NetEscapades.AspNetCore.SecurityHeaders.TagHelpers/NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.csproj
index cdae935..70bf0af 100644
--- a/src/NetEscapades.AspNetCore.SecurityHeaders.TagHelpers/NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.csproj
+++ b/src/NetEscapades.AspNetCore.SecurityHeaders.TagHelpers/NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.csproj
@@ -2,7 +2,7 @@
Tag Helpers for the ASP.NET Core Security Headers middleware for adding Nonces for use with SecurityHeadersMiddleware
- netcoreapp2.1;netcoreapp3.0;
+ netcoreapp3.1;
$(NoWarn)
true
true
diff --git a/src/NetEscapades.AspNetCore.SecurityHeaders/NetEscapades.AspNetCore.SecurityHeaders.csproj b/src/NetEscapades.AspNetCore.SecurityHeaders/NetEscapades.AspNetCore.SecurityHeaders.csproj
index 179fce2..d33f76a 100644
--- a/src/NetEscapades.AspNetCore.SecurityHeaders/NetEscapades.AspNetCore.SecurityHeaders.csproj
+++ b/src/NetEscapades.AspNetCore.SecurityHeaders/NetEscapades.AspNetCore.SecurityHeaders.csproj
@@ -2,7 +2,7 @@
Middleware for ASP.NET Core to automatically add security headers to requests.
- netcoreapp2.1;netcoreapp3.0;
+ netcoreapp3.1;
$(NoWarn)
true
true
diff --git a/test/NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.Test/NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.Test.csproj b/test/NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.Test/NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.Test.csproj
index d3656cc..74a363f 100644
--- a/test/NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.Test/NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.Test.csproj
+++ b/test/NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.Test/NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.Test.csproj
@@ -1,7 +1,7 @@
- netcoreapp2.1;netcoreapp3.0;netcoreapp3.1;net6.0;net8.0
+ netcoreapp3.1;net6.0;net8.0
enable
false
diff --git a/test/NetEscapades.AspNetCore.SecurityHeaders.Test/NetEscapades.AspNetCore.SecurityHeaders.Test.csproj b/test/NetEscapades.AspNetCore.SecurityHeaders.Test/NetEscapades.AspNetCore.SecurityHeaders.Test.csproj
index 1aae701..f66da14 100644
--- a/test/NetEscapades.AspNetCore.SecurityHeaders.Test/NetEscapades.AspNetCore.SecurityHeaders.Test.csproj
+++ b/test/NetEscapades.AspNetCore.SecurityHeaders.Test/NetEscapades.AspNetCore.SecurityHeaders.Test.csproj
@@ -2,7 +2,7 @@
Andrew Lock
- netcoreapp2.1;netcoreapp3.0;netcoreapp3.1;net6.0;net8.0
+ netcoreapp3.1;net6.0;net8.0
NetEscapades.AspNetCore.SecurityHeaders.Test
NetEscapades.AspNetCore.SecurityHeaders.Test
enable
@@ -21,14 +21,6 @@
-
-
-
-
-
-
-
-
diff --git a/test/RazorWebSite/RazorWebSite.csproj b/test/RazorWebSite/RazorWebSite.csproj
index 099fe92..b7a8aa1 100644
--- a/test/RazorWebSite/RazorWebSite.csproj
+++ b/test/RazorWebSite/RazorWebSite.csproj
@@ -1,14 +1,9 @@
- netcoreapp2.1;netcoreapp3.0;netcoreapp3.1;net6.0;net8.0
+ netcoreapp3.1;net6.0;net8.0
-
-
-
-
-
diff --git a/test/RazorWebSite/Startup.cs b/test/RazorWebSite/Startup.cs
index 2e4a4ee..8b3fdbf 100644
--- a/test/RazorWebSite/Startup.cs
+++ b/test/RazorWebSite/Startup.cs
@@ -10,11 +10,7 @@ public class Startup
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
-#pragma warning disable 618 // Version_2_1 is obsolete
-#pragma warning disable ASP5001
- services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
-#pragma warning restore ASP5001
-#pragma warning restore 618
+ services.AddMvc();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
@@ -54,11 +50,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
app.UseSecurityHeaders(policyCollection);
app.UseStaticFiles();
-#if NETCOREAPP3_0_OR_GREATER
- app.UseRouting();
- app.UseEndpoints(endpoints => { endpoints.MapRazorPages(); });
-#else
- app.UseMvc();
-#endif
+ app.UseRouting();
+ app.UseEndpoints(endpoints => { endpoints.MapRazorPages(); });
}
}
\ No newline at end of file
diff --git a/test/SecurityHeadersMiddlewareWebSite/SecurityHeadersMiddlewareWebSite.csproj b/test/SecurityHeadersMiddlewareWebSite/SecurityHeadersMiddlewareWebSite.csproj
index adc9dbc..45ef232 100644
--- a/test/SecurityHeadersMiddlewareWebSite/SecurityHeadersMiddlewareWebSite.csproj
+++ b/test/SecurityHeadersMiddlewareWebSite/SecurityHeadersMiddlewareWebSite.csproj
@@ -1,7 +1,7 @@
- netcoreapp2.1;netcoreapp3.0;netcoreapp3.1;net6.0;net8.0
+ netcoreapp3.1;net6.0;net8.0
SecurityHeadersMiddlewareWebSite
Exe
SecurityHeadersMiddlewareWebSite
@@ -11,11 +11,4 @@
-
-
-
-
-
-
-