Skip to content

Commit 0e10f1e

Browse files
authored
[CSharp] Upgrade FastEndpoints to latest and .net 7.0 (TechEmpower#7694)
1 parent ef69b93 commit 0e10f1e

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

3-
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
5-
<Nullable>enable</Nullable>
6-
<ImplicitUsings>enable</ImplicitUsings>
7-
<NoWarn>CA2016;IDE1006</NoWarn>
8-
</PropertyGroup>
3+
<PropertyGroup>
4+
<TargetFramework>net7.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<NoWarn>CA2016;IDE1006</NoWarn>
8+
</PropertyGroup>
99

10-
<ItemGroup>
11-
<PackageReference Include="FastEndpoints" Version="3.*" />
12-
</ItemGroup>
10+
<ItemGroup>
11+
<PackageReference Include="FastEndpoints" Version="5.*" />
12+
</ItemGroup>
1313

14-
</Project>
14+
</Project>

frameworks/CSharp/fastendpoints/Benchmarks/Endpoints/JsonEndpoint.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Benchmarks.Endpoints;
22

3-
public class JsonEndpoint : Endpoint<EmptyRequest, object>
3+
public sealed class JsonEndpoint : Endpoint<EmptyRequest, object>
44
{
55
public override void Configure()
66
{

frameworks/CSharp/fastendpoints/Benchmarks/Endpoints/PlainTextEndpoint.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Benchmarks.Endpoints;
22

3-
public class PlainTextEndpoint : Endpoint<EmptyRequest, EmptyResponse>
3+
public sealed class PlainTextEndpoint : Endpoint<EmptyRequest, EmptyResponse>
44
{
55
private static readonly byte[] payload = System.Text.Encoding.UTF8.GetBytes("Hello, World!");
66

frameworks/CSharp/fastendpoints/fastendpoints.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:6.0.100 AS build
1+
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
22
WORKDIR /app
33
COPY Benchmarks .
44
RUN dotnet publish -c Release -o out
55

6-
FROM mcr.microsoft.com/dotnet/aspnet:6.0.0 AS runtime
6+
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS runtime
77
WORKDIR /app
88
COPY --from=build /app/out ./
99

0 commit comments

Comments
 (0)