Skip to content

Commit 629ced7

Browse files
authored
Bump dotnet version for tests (#1133)
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
1 parent 94ba156 commit 629ced7

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,11 @@ jobs:
7575
- uses: ./.github/actions/install-wasi-sdk
7676
if: matrix.lang == 'c' || (matrix.lang == 'csharp' && matrix.os == 'windows-latest')
7777

78-
- run: |
79-
curl.exe -LO https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.ps1
80-
powershell -File dotnet-install.ps1 -Channel 8.0.1xx -Verbose
81-
echo DOTNET_ROOT=$LOCALAPPDATA'\Microsoft\dotnet' >> $GITHUB_ENV
82-
export DOTNET_ROOT=$LOCALAPPDATA\\Microsoft\\dotnet
83-
echo $LOCALAPPDATA'\Microsoft\dotnet' >> $GITHUB_PATH
84-
echo $LOCALAPPDATA'\Microsoft\dotnet\tools' >> $GITHUB_PATH
85-
$LOCALAPPDATA/Microsoft/dotnet/dotnet --info
86-
if: matrix.os == 'windows-latest' && matrix.lang == 'csharp'
78+
- name: Setup .NET
79+
uses: actions/setup-dotnet@v4
80+
with:
81+
dotnet-version: '9.x'
82+
if: matrix.lang == 'csharp'
8783

8884
# Hacky work-around for https://github.com/dotnet/runtime/issues/80619
8985
- run: dotnet new console -o /tmp/foo

crates/csharp/src/csproj.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl CSProjectLLVMBuilder {
6565
"<Project Sdk=\"Microsoft.NET.Sdk\">
6666
6767
<PropertyGroup>
68-
<TargetFramework>net8.0</TargetFramework>
68+
<TargetFramework>net9.0</TargetFramework>
6969
<LangVersion>preview</LangVersion>
7070
<RootNamespace>{name}</RootNamespace>
7171
<ImplicitUsings>enable</ImplicitUsings>

0 commit comments

Comments
 (0)