You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enhancement: scan F# .fsproj projects alongside .csproj and .vbproj #693
The .NET scanner discovers projects with isDotnetProjectFile in src/core-open/scanners/dotnet-scanner.ts (around line 292), which only matches .csproj, .vbproj and .sqlproj. The .sln parsing just below it uses the same three extensions.
F# projects use .fsproj, which is an SDK-style MSBuild file with the same <TargetFramework> / <TargetFrameworks> and <PackageReference> elements. Other parts of the CLI already know about .fsproj (for example src/engine/drift.ts and src/lsp/manifest-positions.ts), but vg scan never picks up F# projects, so their target framework and NuGet dependencies are missing from the scan and the SBOM.
What to do
Add .fsproj to isDotnetProjectFile and to the .sln project-entry pattern.
Make sure stripDotnetProjectExtension and anything that derives the project name from the file name handles .fsproj.
Add a small F# fixture (one .fsproj with a TargetFramework and a couple of PackageReferences, optionally referenced from a .sln) and a test.
Acceptance
vg scan on a repository with an .fsproj lists the F# project with its target framework and NuGet dependencies, just like an equivalent .csproj.
Directory.Build.props and Directory.Packages.props apply to .fsproj projects the same way they do for C# projects.
Existing .csproj, .vbproj and .sqlproj behaviour is unchanged.
Good catch: the CLI already knows about .fsproj in src/engine/drift.ts, src/lsp/manifest-positions.ts and src/code/run-outcome.ts, so the scanner is the odd one out.
Where to make the change:
isDotnetProjectFile in src/core-open/scanners/dotnet-scanner.ts (~line 293): add name.endsWith('.fsproj'), and update the doc comment above it.
The .sln project-entry regex (~line 709, comment Path.csproj|vbproj|sqlproj): add fsproj to the alternation.
stripDotnetProjectExtension, plus any code that picks a language from the extension. src/engine/manifests.ts has its own DOTNET_PROJECT_EXTENSIONS list (~line 344) and a .vbproj → 'vb' mapping (~line 384), so F# needs adding there too, or it will be labelled C#.
Worth checking: src/reporting/scanners/platform-matrix.ts (~line 180) only globs .csproj/.vbproj for target frameworks.
src/core-open is vendored, so keep the change self-contained there.
For tests, a tiny fixture is enough: an App.fsproj with <TargetFramework>net8.0</TargetFramework> and two PackageReferences (say FSharp.Core and Newtonsoft.Json), referenced from a .sln. Add a Directory.Packages.props case to confirm central package versions resolve for F# too.
We're picking this one up and will link the PR here.
Activity
vibgrate-team commentedon Nov 18, 2026
Good catch: the CLI already knows about
.fsprojinsrc/engine/drift.ts,src/lsp/manifest-positions.tsandsrc/code/run-outcome.ts, so the scanner is the odd one out.Where to make the change:
isDotnetProjectFileinsrc/core-open/scanners/dotnet-scanner.ts(~line 293): addname.endsWith('.fsproj'), and update the doc comment above it..slnproject-entry regex (~line 709, commentPath.csproj|vbproj|sqlproj): addfsprojto the alternation.stripDotnetProjectExtension, plus any code that picks a language from the extension.src/engine/manifests.tshas its ownDOTNET_PROJECT_EXTENSIONSlist (~line 344) and a.vbproj→'vb'mapping (~line 384), so F# needs adding there too, or it will be labelled C#.src/reporting/scanners/platform-matrix.ts(~line 180) only globs.csproj/.vbprojfor target frameworks.src/core-openis vendored, so keep the change self-contained there.For tests, a tiny fixture is enough: an
App.fsprojwith<TargetFramework>net8.0</TargetFramework>and twoPackageReferences (sayFSharp.CoreandNewtonsoft.Json), referenced from a.sln. Add aDirectory.Packages.propscase to confirm central package versions resolve for F# too.We're picking this one up and will link the PR here.