feat: upgrade to net9 and upgrade deps where possible

This commit is contained in:
Stevan Freeborn
2025-01-28 13:54:06 -06:00
parent ca0c3933ea
commit c2ba64ca62
3 changed files with 17 additions and 17 deletions
+4 -4
View File
@@ -1,16 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UserSecretsId>16b1dba7-29d0-466e-bd34-16d8018898eb</UserSecretsId>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Markdig" Version="0.37.0" />
<PackageReference Include="System.ServiceModel.Syndication" Version="8.0.0" />
<PackageReference Include="TestableIO.System.IO.Abstractions.Wrappers" Version="21.0.29" />
<PackageReference Include="Markdig" Version="0.40.0" />
<PackageReference Include="System.ServiceModel.Syndication" Version="9.0.1" />
<PackageReference Include="TestableIO.System.IO.Abstractions.Wrappers" Version="21.2.12" />
</ItemGroup>
<ItemGroup>
+3 -3
View File
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS setup-stage
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS setup-stage
WORKDIR /app
COPY *.csproj ./
RUN dotnet restore
@@ -13,7 +13,7 @@ CMD ["dotnet", "watch"]
FROM setup-stage as build-stage
RUN dotnet publish -c Release -o dist
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS production-stage
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS production-stage
WORKDIR /app
COPY --from=build-stage /app/dist ./
ENTRYPOINT ["dotnet", "Blog.dll"]
ENTRYPOINT ["dotnet", "Blog.dll"]