Skip to content

Commit c6b160f

Browse files
authored
test: fix dotnet10 integ tests (#8544)
Files for dotnet10 runtime were still using dotnet8 as a target framework. Also, the version installed in the Linux integration tests was still dotnet8
1 parent eb1da48 commit c6b160f

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

appveyor-linux-binary.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,11 @@ install:
7171
- sh: "PATH=/opt/gradle/gradle-9.0.0/bin:$PATH"
7272
- sh: "gradle --version"
7373

74-
# Install dotnet8 SDK
74+
# Install dotnet10 SDK (backwards compatible so it works to build all previous versions)
75+
# https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu-install?tabs=dotnet10&pivots=os-linux-ubuntu-2204
76+
- sh: "sudo add-apt-repository ppa:dotnet/backports"
7577
- sh: "sudo apt-get update"
76-
- sh: "sudo apt-get install -y dotnet-sdk-8.0"
78+
- sh: "sudo apt-get install -y dotnet-sdk-10.0"
7779

7880
# Install AWS CLI
7981
- sh: "virtualenv aws_cli"

appveyor-ubuntu.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,11 @@ install:
244244
- sh: "PATH=/opt/gradle/gradle-9.2.0/bin:$PATH"
245245
- sh: "gradle --version"
246246

247-
# Install dotnet8 SDK
247+
# Install dotnet10 SDK (backwards compatible so it works to build all previous versions)
248+
# https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu-install?tabs=dotnet10&pivots=os-linux-ubuntu-2204
249+
- sh: "sudo add-apt-repository ppa:dotnet/backports"
248250
- sh: "sudo apt-get update"
249-
- sh: "sudo apt-get install -y dotnet-sdk-8.0"
251+
- sh: "sudo apt-get install -y dotnet-sdk-10.0"
250252

251253
# Install AWS CLI
252254
- sh: "virtualenv aws_cli"

tests/integration/testdata/buildcmd/Dotnet10/HelloWorld.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>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
66
</PropertyGroup>
77

0 commit comments

Comments
 (0)