Skip to content

Commit 12e5420

Browse files
Updated CentOS, Debian, RHEL, Ubuntu Word to PDF sample to .NET80
1 parent 9fcdb2d commit 12e5420

File tree

8 files changed

+21
-21
lines changed

8 files changed

+21
-21
lines changed

Word-to-PDF-Conversion/Convert-Word-document-to-PDF/Docker/CentOS/WordToPDFDockerSample/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
FROM centos:8
44

5-
Run dnf install dotnet-sdk-3.1 -y
6-
RUN dnf install dotnet-runtime-3.1 -y
5+
Run dnf install dotnet-sdk-8.0 -y
6+
RUN dnf install dotnet-runtime-8.0 -y
77

88
RUN dnf install fontconfig -y
99

Word-to-PDF-Conversion/Convert-Word-document-to-PDF/Docker/CentOS/WordToPDFDockerSample/WordToPDFDockerSample.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
77
<DockerfileContext>.</DockerfileContext>
88
</PropertyGroup>
99

1010
<ItemGroup>
1111
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.10.14" />
12-
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.80.2" />
13-
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="19.2.0.55" />
12+
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.88.6" />
13+
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="*" />
1414
</ItemGroup>
1515

1616
</Project>

Word-to-PDF-Conversion/Convert-Word-document-to-PDF/Docker/Debian/WordToPDFDockerSample/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
22

3-
FROM mcr.microsoft.com/dotnet/aspnet:3.1-buster-slim AS base
3+
FROM mcr.microsoft.com/dotnet/aspnet:8.0-buster-slim AS base
44
RUN apt-get update -y && apt-get install fontconfig -y
55
WORKDIR /app
66

7-
FROM mcr.microsoft.com/dotnet/sdk:3.1-buster-slim AS build
7+
FROM mcr.microsoft.com/dotnet/sdk:8.0-buster-slim AS build
88
WORKDIR /src
99
COPY ["WordToPDFDockerSample.csproj", "."]
1010
RUN dotnet restore "./WordToPDFDockerSample.csproj"

Word-to-PDF-Conversion/Convert-Word-document-to-PDF/Docker/Debian/WordToPDFDockerSample/WordToPDFDockerSample.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
77
<DockerfileContext>.</DockerfileContext>
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.10.14" />
12-
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.80.2" />
13-
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="19.2.0.55" />
11+
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
12+
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.88.6" />
13+
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="*" />
1414
</ItemGroup>
1515

1616
</Project>

Word-to-PDF-Conversion/Convert-Word-document-to-PDF/Docker/RHEL/WordToPDFDockerSample/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
22

3-
FROM registry.access.redhat.com/ubi8/dotnet-31-runtime AS base
3+
FROM registry.access.redhat.com/ubi8/dotnet-80-runtime AS base
44
USER root
55
RUN yum -y install fontconfig --disablerepo=epel
66
WORKDIR /
77

8-
FROM registry.access.redhat.com/ubi8/dotnet-31 AS build
8+
FROM registry.access.redhat.com/ubi8/dotnet-80 AS build
99
WORKDIR /src
1010
COPY ["WordToPDFDockerSample.csproj", ""]
1111
RUN dotnet restore "./WordToPDFDockerSample.csproj"

Word-to-PDF-Conversion/Convert-Word-document-to-PDF/Docker/RHEL/WordToPDFDockerSample/WordToPDFDockerSample.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
77
<DockerfileContext>.</DockerfileContext>
88
</PropertyGroup>
99

1010
<ItemGroup>
1111
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.10.14" />
12-
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.80.2" />
13-
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="19.2.0.55" />
12+
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.88.6" />
13+
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="*" />
1414
</ItemGroup>
1515

1616
</Project>

Word-to-PDF-Conversion/Convert-Word-document-to-PDF/Docker/Ubuntu/WordToPDFDockerSample/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
22

3-
FROM mcr.microsoft.com/dotnet/runtime:3.1-bionic AS base
3+
FROM mcr.microsoft.com/dotnet/runtime:8.0-bionic AS base
44
RUN apt-get update -y && apt-get install fontconfig -y
55
WORKDIR /app
66

7-
FROM mcr.microsoft.com/dotnet/sdk:3.1-bionic AS build
7+
FROM mcr.microsoft.com/dotnet/sdk:8.0-bionic AS build
88
WORKDIR /src
99
COPY ["WordToPDFDockerSample.csproj", "."]
1010
RUN dotnet restore "./WordToPDFDockerSample.csproj"

Word-to-PDF-Conversion/Convert-Word-document-to-PDF/Docker/Ubuntu/WordToPDFDockerSample/WordToPDFDockerSample.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
77
<DockerfileContext>.</DockerfileContext>
88
</PropertyGroup>
99

1010
<ItemGroup>
1111
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.10.14" />
12-
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.80.2" />
13-
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="19.2.0.55" />
12+
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.88.6" />
13+
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="*" />
1414
</ItemGroup>
1515

1616
</Project>

0 commit comments

Comments
 (0)