Skip to content

fix: scan F# .fsproj projects in vg scan - #694

Open
vibgrate-team wants to merge 1 commit into
mainfrom
cursor/scan-fsproj-61f4
Open

vibgrate-team wants to merge 1 commit into
mainfrom
cursor/scan-fsproj-61f4

Conversation

@vibgrate-team

Copy link
Copy Markdown
Contributor

Summary

vg scan discovered .NET projects only from .csproj, .vbproj, and .sqlproj, so SDK-style F# projects (.fsproj) never contributed a target framework or NuGet dependencies to the scan or the SBOM.

  • The .NET scanner now treats .fsproj as a project file: discovery, project-name stripping, and .sln Project(...) entries, so an F# project referenced from a solution is attached to that solution.
  • Directory.Build.props and Directory.Packages.props now apply to F# projects too, because those projects are scanned.
  • The manifest graph labels an .fsproj package node fsharp (.vbproj stays vb, .sqlproj stays sql, .csproj stays csharp).
  • Platform-matrix target-framework collection includes .fsproj.

.csproj, .vbproj, and .sqlproj parsing is unchanged.

Tests

  • Fixture test/fixtures/fsharp-fsproj: App.fsproj (net8.0, two PackageReferences) referenced from App.sln, with versions from Directory.Packages.props. The scan lists the project, both packages and the CycloneDX components, and runCoreScan attaches the project to the solution.
  • An .fsproj named only by the solution (under a skipped node_modules directory) is still scanned.
  • An .fsproj with no target framework inherits net8.0 from Directory.Build.props.
  • A mixed tree still names .csproj, .vbproj, .sqlproj and .fsproj projects from their file names.
  • Manifest extraction and the platform matrix each assert the F# project.

pnpm test, pnpm typecheck and pnpm lint pass.

Closes #693

Discover SDK-style F# projects alongside .csproj, .vbproj, and .sqlproj so
their target framework and NuGet dependencies are included in vg scan and
the SBOM. Directory.Build.props and Directory.Packages.props apply the same
way they do for C# projects, and the manifest graph labels them fsharp.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: ABIZ - Agentic Business Record Standard <ops@to.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhancement: scan F# .fsproj projects alongside .csproj and .vbproj

2 participants