Skip to content

Commit c0270fa

Browse files
committed
(#85) Build: migrate to .NET 8
1 parent 134a510 commit c0270fa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Codingteam.Site/Codingteam.Site.fsproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<Version>1.1.0</Version>
66
</PropertyGroup>
77

@@ -24,6 +24,6 @@
2424
<Compile Include="Program.fs" />
2525
</ItemGroup>
2626
<ItemGroup>
27-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="3.1.6" />
27+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.0" />
2828
</ItemGroup>
2929
</Project>

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env
1+
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
22

33
WORKDIR /app
44

@@ -9,7 +9,7 @@ COPY Codingteam.Site ./Codingteam.Site/
99
RUN dotnet build --no-restore --configuration Release Codingteam.Site
1010
RUN dotnet publish --no-build --configuration Release --output publish Codingteam.Site
1111

12-
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1
12+
FROM mcr.microsoft.com/dotnet/aspnet:8.0
1313
WORKDIR /app
1414

1515
COPY --from=build-env /app/publish .

0 commit comments

Comments
 (0)