Skip to content

Commit a35b173

Browse files
committed
dotnet: default to .Net 8.0 LTS
net6.0 LTS is EoL since November 12, 2024 ref: https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core
1 parent 60e9f53 commit a35b173

5 files changed

Lines changed: 6 additions & 9 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ elseif(USE_DOTNET_47)
162162
elseif(USE_DOTNET_462)
163163
set(EXAMPLE_DEFAULT_TFM "net462")
164164
else()
165-
message(WARNING "Default TFM for examples is set to net6.0 which is not enable")
166-
set(EXAMPLE_DEFAULT_TFM "net6.0")
165+
message(WARNING "Default TFM for examples is set to net8.0 which is not enable")
166+
set(EXAMPLE_DEFAULT_TFM "net8.0")
167167
endif()
168168

169169
set(EXAMPLE_TFM ${EXAMPLE_DEFAULT_TFM} CACHE STRING "TFM use in sample")

ci/docker/almalinux/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ RUN dnf -y update \
3030
# see: https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#scripted-install
3131
RUN wget -q "https://dot.net/v1/dotnet-install.sh" \
3232
&& chmod a+x dotnet-install.sh \
33-
&& ./dotnet-install.sh -c 3.1 -i /usr/local/bin \
34-
&& ./dotnet-install.sh -c 6.0 -i /usr/local/bin
33+
&& ./dotnet-install.sh -c 8.0 -i /usr/local/bin
3534
# Trigger first run experience by running arbitrary cmd
3635
RUN dotnet --info
3736

ci/docker/alpine/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ RUN apk add --no-cache bash wget icu-libs libintl
1616
# see: https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#scripted-install
1717
RUN wget -q "https://dot.net/v1/dotnet-install.sh" \
1818
&& chmod a+x dotnet-install.sh \
19-
&& ./dotnet-install.sh -c 3.1 -i /usr/local/bin \
20-
&& ./dotnet-install.sh -c 6.0 -i /usr/local/bin
19+
&& ./dotnet-install.sh -c 8.0 -i /usr/local/bin
2120
# Trigger first run experience by running arbitrary cmd
2221
RUN dotnet --info
2322

ci/docker/rockylinux/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ RUN dnf -y update \
3030
# see: https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#scripted-install
3131
RUN wget -q "https://dot.net/v1/dotnet-install.sh" \
3232
&& chmod a+x dotnet-install.sh \
33-
&& ./dotnet-install.sh -c 3.1 -i /usr/local/bin \
34-
&& ./dotnet-install.sh -c 6.0 -i /usr/local/bin
33+
&& ./dotnet-install.sh -c 8.0 -i /usr/local/bin
3534
# Trigger first run experience by running arbitrary cmd
3635
RUN dotnet --info
3736

ci/sample/Mizux.Sample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
44
<LangVersion>8.0</LangVersion>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<EnableDefaultItems>false</EnableDefaultItems>
77
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
88
<!-- see https://github.com/dotnet/docs/issues/12237 -->

0 commit comments

Comments
 (0)