Skip to content

Commit

Permalink
Add dotnet 8 builds and remove deprecated dotnet versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Garados007 committed Feb 18, 2024
1 parent a3643a1 commit a0d865b
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
8.0
6.0.102
3.1.101
- name: Install dependencies
run: dotnet restore
- name: Build
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Init git submodules
run: git submodule init && git submodule update

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.102
dotnet-version: '8.0'
- name: Install dependencies
run: dotnet restore

- name: Publish MaxLib.WebServer NuGet
uses: brandedoutcast/[email protected]
with:
Expand Down
12 changes: 4 additions & 8 deletions MaxLib.WebServer/HttpException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ namespace MaxLib.WebServer
public class HttpException : System.Exception
{
public HttpException() { }
public HttpException(string message) : base(message)
public HttpException(string message) : base(message)
{
DataSource = new HttpStringDataSource(message);
}

public HttpException(string message, System.Exception inner) : base(message, inner)
{
public HttpException(string message, System.Exception inner) : base(message, inner)
{
DataSource = new HttpStringDataSource(message);
}

Expand All @@ -40,12 +40,8 @@ public HttpException(HttpDataSource dataSource)
DataSource = dataSource;
}

protected HttpException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base(info, context) { }

public HttpStateCode StateCode { get; set; } = HttpStateCode.InternalServerError;

public HttpDataSource? DataSource { get; set; }
}
}
}
9 changes: 1 addition & 8 deletions MaxLib.WebServer/IO/ReadLineOverflowException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,5 @@ public ReadLineOverflowException(HttpStateCode state, string message) : base(mes
{
State = state;
}
public ReadLineOverflowException(HttpStateCode state, string message, System.Exception inner) : base(message, inner)
{
State = state;
}
protected ReadLineOverflowException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
}
}
}
2 changes: 1 addition & 1 deletion MaxLib.WebServer/MaxLib.WebServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="MaxLib.WebServer.csproj.include" />

<PropertyGroup>
<TargetFrameworks>net6.0;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net8.0;net6.0</TargetFrameworks>
<PackageId>MaxLib.WebServer</PackageId>
<Authors>garados007</Authors>
<Company>Max Brauer</Company>
Expand Down
3 changes: 0 additions & 3 deletions MaxLib.WebServer/WebSocket/TooLargePayloadException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@ public class TooLargePayloadException : Exception
public TooLargePayloadException() { }
public TooLargePayloadException(string message) : base(message) { }
public TooLargePayloadException(string message, Exception inner) : base(message, inner) { }
protected TooLargePayloadException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion tests/MaxLib.WebServer.Test/MaxLib.WebServer.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="..\..\MaxLib.WebServer\MaxLib.WebServer.csproj.include" />

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net8.0</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down

0 comments on commit a0d865b

Please sign in to comment.