Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit b3d4f4e

Browse files
committed
Aggiornata versione libreria
1 parent 096f1b3 commit b3d4f4e

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/CustomLibrary.ProblemDetails.Sample/Startup.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ public void ConfigureServices(IServiceCollection services)
1818
{
1919
options.SwaggerDoc("v1", new OpenApiInfo
2020
{
21-
Title = "Sample",
21+
Title = "Sample .NET 6",
2222
Version = "v1",
2323
});
2424
});
2525

2626
services.AddProblemDetails();
2727
services.AddCors(options =>
2828
{
29-
options.AddPolicy("Sample", policy =>
29+
options.AddPolicy("Sample .NET 6", policy =>
3030
{
3131
policy.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod();
3232
});
@@ -41,7 +41,7 @@ public void Configure(WebApplication app)
4141
IWebHostEnvironment env = app.Environment;
4242

4343
app.UseProblemDetails();
44-
app.UseCors("Sample");
44+
app.UseCors("Sample .NET 6");
4545

4646
app.UseSwagger();
4747
app.UseSwaggerUI(options =>

src/CustomLibrary.ProblemDetails/CustomLibrary.ProblemDetails.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0</TargetFrameworks>
4+
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>disable</Nullable>
77
<Authors>Angelo Pirola</Authors>

src/CustomLibrary.ProblemDetails/Exception/BadGatewayException.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
namespace CustomLibrary.ProblemDetails.Exception;
2+
23
public class BadGatewayException : System.Exception
34
{
45
public BadGatewayException()

src/CustomLibrary.ProblemDetails/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "1.0",
3+
"version": "1.1",
44
"publicReleaseRefSpec": [
55
"^refs/heads/main$" // we release out of master
66
],

0 commit comments

Comments
 (0)