Skip to content

Build error in C#8 #2952

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

Closed
kyranet opened this issue Mar 1, 2020 · 1 comment
Closed

Build error in C#8 #2952

kyranet opened this issue Mar 1, 2020 · 1 comment
Labels
C# question Further information is requested

Comments

@kyranet
Copy link

kyranet commented Mar 1, 2020

Description of the issue

I'm getting a failing build in this LGTM build:

[2020-03-01 15:05:22] [build] Done Building Project "/opt/src/Skyra.sln" (rebuild target(s)) -- FAILED.
[2020-03-01 15:05:22] [build] Build FAILED.
[2020-03-01 15:05:22] [build] "/opt/src/Skyra.sln" (rebuild target) (1) ->
[2020-03-01 15:05:22] [build] "/opt/src/Skyra/Skyra.csproj" (Rebuild target) (2) ->
[2020-03-01 15:05:22] [build] (CoreCompile target) -> 
[2020-03-01 15:05:22] [build]   Monitors/CommandHandlerMonitor.cs(141,4): error CS0518: Predefined type 'System.IAsyncDisposable' is not defined or imported [/opt/src/Skyra/Skyra.csproj]
[2020-03-01 15:05:22] [build]     0 Warning(s)
[2020-03-01 15:05:22] [build]     1 Error(s)
[2020-03-01 15:05:22] [build] Time Elapsed 00:00:38.31

The error in here points to the line:

await using var db = new SkyraDatabaseContext();

The build is done from this Pull Request.

The code compiles and runs perfectly locally, but it fails in LGTM.

@kyranet kyranet added the question Further information is requested label Mar 1, 2020
@hvitved hvitved added the C# label Mar 2, 2020
@jketema
Copy link
Contributor

jketema commented May 22, 2025

LGTM has been shutdown for quite a while at this point. Closing this issue. If this is still a problem when running CodeQL in a GitHub action, please open a new issue.

@jketema jketema closed this as completed May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C# question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants