Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions Failing to Build .NET 9.0 Project #562

Open
2 of 5 tasks
ZjzMisaka opened this issue Nov 23, 2024 · 0 comments
Open
2 of 5 tasks

GitHub Actions Failing to Build .NET 9.0 Project #562

ZjzMisaka opened this issue Nov 23, 2024 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@ZjzMisaka
Copy link

Description:
I recently updated my project to target .NET 9.0 after its release. I modified the csproj file to set the TargetFramework to .NET 9.0 and successfully built the project on my local machine. However, after committing the changes, the GitHub Actions workflow fails during the build step with the following error:

The current .NET SDK does not support targeting .NET 9.0. Either target .NET 8.0 or lower, or use a version of the .NET SDK that supports .NET 9.0. Download the .NET SDK from https://aka.ms/dotnet/download

This suggests that the version of the .NET SDK being used in the GitHub Actions environment does not yet support .NET 9.0.

Questions:

  1. Is .NET 9.0 supported in GitHub Actions?
  2. Do I need to configure my workflow specifically for .NET 9.0?

Task version:
actions/setup-dotnet@v3

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:
https://github.com/ZjzMisaka/PowerThreadPool/blob/main/.github/workflows/test.yml

Expected behavior:
Successfully build

Actual behavior:
Build step with the following error:

The current .NET SDK does not support targeting .NET 9.0. Either target .NET 8.0 or lower, or use a version of the .NET SDK that supports .NET 9.0. Download the .NET SDK from https://aka.ms/dotnet/download
@ZjzMisaka ZjzMisaka added bug Something isn't working needs triage labels Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant