Skip to content

Build error in C#8 #2952

Closed
Closed
@kyranet

Description

@kyranet

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C#questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions