Skip to content

Commit

Permalink
⬆️ Move from .NET 6.0 to 8.0 (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
another-one-employee authored Oct 9, 2024
1 parent 03933b1 commit 99d76fa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/TDPDNE.Telegram.Bot/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY ["NuGet.Config", "."]
COPY ["TDPDNE.Telegram.Bot/TDPDNE.Telegram.Bot.csproj", "TDPDNE.Telegram.Bot/"]
Expand Down
2 changes: 1 addition & 1 deletion src/TDPDNE.Telegram.Bot/Services/TDPDNEWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private Stream RemoveBlackBorder(Stream stream)
using var image = new MagickImage(stream: stream);
image.ColorFuzz = new Percentage(_configuration.MagickFuzzPercentage);
image.Trim();
image.RePage();
image.ResetPage();

return new MemoryStream(image.ToByteArray());
}
Expand Down
14 changes: 7 additions & 7 deletions src/TDPDNE.Telegram.Bot/TDPDNE.Telegram.Bot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Magick.NET-Q16-AnyCPU" Version="13.10.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.18.1" />
<PackageReference Include="Serilog.AspNetCore" Version="7.0.0" />
<PackageReference Include="Magick.NET-Q16-AnyCPU" Version="14.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.1" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.2" />
<PackageReference Include="Telegram.Bot" Version="19.0.0" />
</ItemGroup>

Expand Down

0 comments on commit 99d76fa

Please sign in to comment.