upgrade to net 9
Some checks failed
Build docker container / build (push) Failing after 2m8s

This commit is contained in:
David Claeys 2024-11-14 10:57:36 +01:00
parent 781a1aaade
commit a88dd8a85d
2 changed files with 9 additions and 8 deletions

View File

@ -1,5 +1,5 @@
ARG CERT_PASSWORD_ARG=3vo3rmb5DBJXsryjMfJsrpjbKsbj8B ARG CERT_PASSWORD_ARG=3vo3rmb5DBJXsryjMfJsrpjbKsbj8B
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine-amd64 as build-env FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine-amd64 as build-env
ARG CERT_PASSWORD_ARG ARG CERT_PASSWORD_ARG
ENV CERT_PASSWORD=$CERT_PASSWORD_ARG ENV CERT_PASSWORD=$CERT_PASSWORD_ARG
WORKDIR /App WORKDIR /App
@ -9,7 +9,7 @@ RUN dotnet restore \
&& dotnet dev-certs https --export-path /config/aspnetapp.pem --password "$CERT_PASSWORD" --format PEM \ && dotnet dev-certs https --export-path /config/aspnetapp.pem --password "$CERT_PASSWORD" --format PEM \
&& rm **/appsettings.Development.json && rm **/*.pdb && rm **/appsettings.Development.json && rm **/*.pdb
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine-amd64 FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine-amd64
ARG CERT_PASSWORD_ARG ARG CERT_PASSWORD_ARG
ENV CERT_PASSWORD=$CERT_PASSWORD_ARG ENV CERT_PASSWORD=$CERT_PASSWORD_ARG
WORKDIR /App WORKDIR /App

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web"> <Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>Telebilbap_Epg</RootNamespace> <RootNamespace>Telebilbap_Epg</RootNamespace>
@ -10,13 +10,14 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="HtmlAgilityPack" Version="1.11.67" /> <PackageReference Include="HtmlAgilityPack" Version="1.11.71" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" /> <PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.8.1" /> <PackageReference Include="Swashbuckle.AspNetCore" Version="7.0.0" />
<PackageReference Include="Quartz" Version="3.13.0" /> <PackageReference Include="Quartz" Version="3.13.1" />
<PackageReference Include="Quartz.Extensions.DependencyInjection" Version="3.13.0" /> <PackageReference Include="Quartz.Extensions.DependencyInjection" Version="3.13.1" />
<PackageReference Include="Quartz.Extensions.Hosting" Version="3.13.0" /> <PackageReference Include="Quartz.Extensions.Hosting" Version="3.13.1" />
<PackageReference Include="TableSpans.HtmlAgilityPack" Version="1.0.1" /> <PackageReference Include="TableSpans.HtmlAgilityPack" Version="1.0.1" />
<PackageReference Include="XmlTvSharp" Version="1.1.2" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>