Skip to content

Commit 3f174dd

Browse files
committed
Update to .NET 9.0, Migrate to SLNX
1 parent 5c09696 commit 3f174dd

File tree

4 files changed

+22
-61
lines changed

4 files changed

+22
-61
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
1+
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
22
WORKDIR /app
33

44
# copy csproj and restore as distinct layers
5-
COPY *.sln .
5+
COPY *.slnx .
66
COPY src/Hops/*.csproj ./src/Hops/
77
RUN dotnet restore
88

@@ -11,7 +11,7 @@ COPY src/Hops/. ./src/Hops/
1111
WORKDIR /app/src/Hops
1212
RUN dotnet publish -c Release -o out
1313

14-
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS runtime
14+
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime
1515

1616
WORKDIR /app
1717

Hops.sln

-55
This file was deleted.

Hops.slnx

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<Solution>
2+
<Configurations>
3+
<Platform Name="Any CPU" />
4+
<Platform Name="ARM" />
5+
<Platform Name="x64" />
6+
<Platform Name="x86" />
7+
</Configurations>
8+
<Folder Name="/Solution Items/">
9+
<File Path=".github/workflows/workflow.yml" />
10+
<File Path="Dockerfile" />
11+
<File Path="README.md" />
12+
</Folder>
13+
<Folder Name="/src/">
14+
<Project Path="src/Hops/Hops.csproj" />
15+
</Folder>
16+
</Solution>

src/Hops/Hops.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Web">
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.9" />
9+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="9.0.3" />
1010
<PackageReference Include="Microsoft.Web.LibraryManager.Build" Version="2.1.175" />
1111
</ItemGroup>
1212

0 commit comments

Comments
 (0)