Skip to content

Commit 975ded0

Browse files
committed
Upgraded to .NET 8
1 parent c04311f commit 975ded0

File tree

8 files changed

+21
-11
lines changed

8 files changed

+21
-11
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup .NET
1616
uses: actions/setup-dotnet@v1
1717
with:
18-
dotnet-version: 6.x
18+
dotnet-version: 8.x
1919
fetch-depth: 0
2020

2121
# Loop through all the solutions in src and restore, build & test

.github/workflows/release-and-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jobs:
2626
id: gitversion
2727
uses: gittools/actions/gitversion/execute@v0
2828

29-
# Setup .NET 6
29+
# Setup .NET 8
3030
- name: Setup .NET
3131
uses: actions/setup-dotnet@v1
3232
with:
33-
dotnet-version: 6.x
33+
dotnet-version: 8.x
3434

3535
# Build the tools & create the zip-file and nuget packages
3636
# Chocolatey tools are in .\tools. NuGet packages in .\artifacts

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build-env
1+
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
22
ARG tool
33
WORKDIR /app
44

@@ -10,7 +10,7 @@ RUN dotnet restore "src/${tool}/${tool}.csproj"
1010
RUN dotnet publish "src/${tool}/${tool}.csproj" -c Release -r linux-musl-x64 -o out /p:PublishSingleFile=true /p:CopyOutputSymbolsToPublishDirectory=false /p:AssemblyName=docfx-companion-tools-entrypoint --self-contained false
1111

1212
# Build runtime image
13-
FROM mcr.microsoft.com/dotnet/runtime:6.0-alpine
13+
FROM mcr.microsoft.com/dotnet/runtime:8.0
1414
RUN adduser -D docfx-companion-tools
1515
COPY --from=build-env /app/out /usr/bin/
1616
USER docfx-companion-tools

src/DocFxOpenApi/DocFxOpenApi.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
6+
<LangVersion>12.0</LangVersion>
7+
<ImplicitUsings>enable</ImplicitUsings>
68
<Nullable>enable</Nullable>
79
<GenerateDocumentationFile>true</GenerateDocumentationFile>
810
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

src/DocFxTocGenerator/DocFxTocGenerator.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
6+
<LangVersion>12.0</LangVersion>
67
<GenerateDocumentationFile>true</GenerateDocumentationFile>
78
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
9+
<ImplicitUsings>enable</ImplicitUsings>
10+
<Nullable>disable</Nullable>
811
<PackageLicenseExpression>MIT</PackageLicenseExpression>
912
<PackageReadmeFile>README.md</PackageReadmeFile>
1013
<Authors>DocFx Companion Tools contributors</Authors>

src/DocLanguageTranslator/DocLanguageTranslator.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
6+
<LangVersion>12.0</LangVersion>
67
<GenerateDocumentationFile>true</GenerateDocumentationFile>
78
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
9+
<ImplicitUsings>enable</ImplicitUsings>
10+
<Nullable>disable</Nullable>
811
<PackageLicenseExpression>MIT</PackageLicenseExpression>
912
<PackageReadmeFile>README.md</PackageReadmeFile>
1013
<Authors>DocFx Companion Tools contributors</Authors>

src/DocLinkChecker/DocLinkChecker.Test/DocLinkChecker.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

src/DocLinkChecker/DocLinkChecker/DocLinkChecker.csproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
6-
<LangVersion>10.0</LangVersion>
5+
<TargetFramework>net8.0</TargetFramework>
6+
<LangVersion>12.0</LangVersion>
77
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
88
<GenerateDocumentationFile>true</GenerateDocumentationFile>
9+
<ImplicitUsings>enable</ImplicitUsings>
10+
<Nullable>disable</Nullable>
911
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1012
<PackageReadmeFile>README.md</PackageReadmeFile>
1113
<Authors>DocFx Companion Tools contributors</Authors>

0 commit comments

Comments
 (0)