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

Build error in C#8 #2952

Open
kyranet opened this issue Mar 1, 2020 · 0 comments
Open

Build error in C#8 #2952

kyranet opened this issue Mar 1, 2020 · 0 comments
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
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

2 participants