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

CodeQL Autobuild fails on C# (.NET 5 RC1) #244

Closed
Reelix opened this issue Oct 2, 2020 · 3 comments
Closed

CodeQL Autobuild fails on C# (.NET 5 RC1) #244

Reelix opened this issue Oct 2, 2020 · 3 comments

Comments

@Reelix
Copy link

Reelix commented Oct 2, 2020

Steps to replicate the issue

1.) Create a C# Project using the latest Release Candidate of .NET 5
2.) Add CodeQL with the default yml file
3.) Notice CodeQL Fails with "We were unable to automatically build your code."

@marsen
Copy link

marsen commented Nov 11, 2020

plus

@Reelix
Copy link
Author

Reelix commented Nov 11, 2020

With the release of .NET 5.0, this bug was also effectively fixed.

Add a global.json file to your project with the following code

{
  "sdk": {
    "version": "5.0.100",
    "rollForward": "latestMajor"
  }
}

I have tested this on my own .NET 5.0 project over at https://github.com/Reelix/Reecon and it works.

@Reelix Reelix closed this as completed Nov 11, 2020
@marsen
Copy link

marsen commented Nov 12, 2020

thanks, it's work for me 👍 👍 👍 👍 👍

danjagnow added a commit to blizzard-net/warcraft that referenced this issue Dec 10, 2020
Added a global.json file to specify .NET 5 for the build.  This seems to be necessary for CodeQL at present based on github/codeql-action#244.
danjagnow added a commit to blizzard-net/warcraft that referenced this issue Dec 10, 2020
Added a global.json file to specify .NET 5 for the build.  This seems to be necessary for CodeQL at present based on github/codeql-action#244.
draekien added a commit to draekien/FluentConstructorAssertions that referenced this issue Aug 1, 2021
marcflohrer added a commit to marcflohrer/stiebel-eltron-dashboard that referenced this issue Aug 2, 2021
AmanAgnihotri added a commit to TelegramBotsAPI/Telegram.Bots that referenced this issue Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants