Skip to content

Commit

Permalink
Bump dotnet version for tests (#1133)
Browse files Browse the repository at this point in the history
Signed-off-by: James Sturtevant <[email protected]>
  • Loading branch information
jsturtevant authored Jan 21, 2025
1 parent 94ba156 commit cdbd780
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,11 @@ jobs:
- uses: ./.github/actions/install-wasi-sdk
if: matrix.lang == 'c' || (matrix.lang == 'csharp' && matrix.os == 'windows-latest')

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

# Hacky work-around for https://github.com/dotnet/runtime/issues/80619
- run: dotnet new console -o /tmp/foo
Expand Down
2 changes: 1 addition & 1 deletion crates/csharp/src/csproj.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl CSProjectLLVMBuilder {
"<Project Sdk=\"Microsoft.NET.Sdk\">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<LangVersion>preview</LangVersion>
<RootNamespace>{name}</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down

0 comments on commit cdbd780

Please sign in to comment.