Skip to content

Can't lint on sln/slnx and fsproj #740

@sharpchen

Description

@sharpchen

Not able to lint on sln/slnx and fsproj

Version

$ dotnet-fsharplint --version
Current version: 0.24.2+143ae50e0e32d0842fa36c1bc22c735f2c72f114

Repro

Proj file

$ dotnet build ./src/FSharpLint.Core/FSharpLint.Core.fsproj

Restore complete (0.5s)
  FSharpLint.Core succeeded (0.4s) → src/FSharpLint.Core/bin/Debug/net9.0/FSharpLint.Core.dll

Build succeeded in 1.5s

$ dotnet-fsharplint --format msbuild lint ./src/FSharpLint.Core/FSharpLint.Core.fsproj

FSharpLint error: Lint failed to parse files. Failed with: Type check failed. You might want to build your solution/project first and try again.
Type check failed. You might want to build your solution/project first and try again.
Type check failed. You might want to build your solution/project first and try again.
Type check failed. You might want to build your solution/project first and try again.
Type check failed. You might want to build your solution/project first and try again.
Type check failed. You might want to build your solution/project first and try again.
Type check failed. You might want to build your solution/project first and try again.
Type check failed. You might want to build your solution/project first and try again.
Type check failed. You might want to build your solution/project first and try again.
Type check failed. You might want to build your solution/project first and try again.

Slnx

$ dotnet-fsharplint --format msbuild lint ./fsharp-console.sln

FSharpLint error: Lint failed to parse files. Failed with: Type check failed. You might want to build your solution/project first and try again.
Type check failed. You might want to build your solution/project first and try again.
Type check failed. You might want to build your solution/project first and try again.

$ dotnet-fsharplint --format msbuild lint ./fsharp-console.slnx

========== Linting <inline source> ==========
========== Finished: 0 warnings ==========
========== Summary: 0 warnings ==========

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions