-
Notifications
You must be signed in to change notification settings - Fork 349
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
CodeQL does not seem to support .NET 6.x (pre-release) #757
Comments
Correct, we do not officially support pre-releases for C#. |
.NET 6 is now officially released. |
Similar to #244 (comment) Add a
Tested and working on my .NET 6 project over at https://github.com/Reelix/Reecon |
Thanks for the workaround. Works for my project, as well. |
I added a "Set up .NET" step with .NET version 6 before Autobuild and it also works. |
CodeQL does not automatically support .NET 6 yet. github/codeql-action#757
Fix for CodeQL not yet support .NET 6, ref: github/codeql-action#757
For people who may stumble upon this and not really know what this means, you can add the following to your .yml file as one of the - name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0'
include-prerelease: True |
You don't need to include prerelease if you don't need .NET 6 Preview builds. |
To add some information to people coming to this thread, I suppose the official support matrix is at https://codeql.github.com/docs/codeql-overview/supported-languages-and-frameworks/ and it does not include .NET 6 yet. I checked at https://github.com/lumoin/Verifiable/runs/4308854222?check_suite_focus=true#step:12:92 and got
which started after updating to .NET 6 and C# 10. I have not tried add There is setup |
This might not work if you don't use autobuild. |
Ah, thanks! This could be a useful piece of information. I have not thought about using autobuild, not even adding |
You could see an example here: https://raw.githubusercontent.com/RanTodd-Team/RanTodd/master/.github/workflows/codeql-analysis.yml |
CodeQL does not automatically support .NET 6 yet. github/codeql-action#757
this time with .NET 6.0 fix from github/codeql-action#757
disabling CodeQL due to lack of .NET 6 support: github/codeql-action#757 and github/codeql-action#850
Is there any update on this @hvitved? .NET 6 has been out for 2 months now, and since it's an LTS release, support is especially important. |
@samuel-lucas6 Updating global.json and the yml file as described in the comments above has fixed the issue for me for all of my .NET 6.0 projects. Check out pmachapman/GoTo.Bible@9490720 to see this in action. |
Thank you for the tip, but I've already had to implement the fix for one of my projects; I'm just trying to bring attention to this issue again since the last message was back in November and .NET 6 should be supported without any tweaks by now. |
We updated the C# extractor back in December to use the latest version of The workarounds in this thread seem to be about the Actions workers not having .NET 6 installed by default, which appears to still be needed, at least when using |
I have added a request for |
Many thanks @hvitved! |
I was trying to update my .NET Core project to 6.0.
|
Added setup .net step proposed here with .net 7 github/codeql-action#757
Code is not detected when built with .NET 6.x (pre-release).
The text was updated successfully, but these errors were encountered: