Update to .NET 10
This commit is contained in:
parent
59a1b1e41d
commit
90fe37eacc
5 changed files with 9 additions and 9 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
||||
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||
WORKDIR /app
|
||||
COPY NightLight.sln ./
|
||||
COPY NightLight.Core/NightLight.Core.fsproj NightLight.Core/
|
||||
|
|
@ -7,7 +7,7 @@ RUN dotnet restore NightLight/NightLight.fsproj
|
|||
COPY . ./
|
||||
RUN dotnet publish NightLight/NightLight.fsproj --no-restore -c Release -o out
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/runtime:9.0
|
||||
FROM mcr.microsoft.com/dotnet/runtime:10.0
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/out .
|
||||
ENTRYPOINT ["dotnet", "NightLight.dll"]
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
buildDotnetModule,
|
||||
dotnet-sdk_9,
|
||||
dotnet-runtime_9,
|
||||
dotnet-sdk_10,
|
||||
dotnet-runtime_10,
|
||||
}:
|
||||
|
||||
buildDotnetModule rec {
|
||||
|
|
@ -13,8 +13,8 @@ buildDotnetModule rec {
|
|||
projectFile = "NightLight/NightLight.fsproj";
|
||||
nugetDeps = ./deps.json;
|
||||
|
||||
dotnet-sdk = dotnet-sdk_9;
|
||||
dotnet-runtime = dotnet-runtime_9;
|
||||
dotnet-sdk = dotnet-sdk_10;
|
||||
dotnet-runtime = dotnet-runtime_10;
|
||||
|
||||
executables = [ "NightLight" ];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue