Repository navigation
Closed
Description
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
Labels
No labels
Activity
[-]Can't lint for specified fsproj file[/-][+]Can't lint for specified fsproj file & empty result for sln/slnx on lint[/+][-]Can't lint for specified fsproj file & empty result for sln/slnx on lint[/-][+]Can't lint on sln/slnx and fsproj[/+]Numpsy commentedon Jul 10, 2025
.slnx files should be supported in the next release - #723 - which should also fix the problems when running on .NET 9
Numpsy commentedon Jul 11, 2025
This should be working in the nre 0.25 release
sharpchen commentedon Jul 11, 2025
@Numpsy Thanks, it works on latest version. But I noticed that the diagnostics are now concatenated as one single line, is it expected?
xperiandri commentedon Jul 11, 2025
0.25.0 supports
slnxandslnfplease try and close if fixed