Repository navigation
fix: scan F# .fsproj projects in vg scan - #694
Open
vibgrate-team wants to merge 1 commit into
Open
vibgrate-team wants to merge 1 commit into
vibgrate-team wants to merge 1 commit into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
vg scandiscovered .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..fsprojas a project file: discovery, project-name stripping, and.slnProject(...)entries, so an F# project referenced from a solution is attached to that solution.Directory.Build.propsandDirectory.Packages.propsnow apply to F# projects too, because those projects are scanned..fsprojpackage nodefsharp(.vbprojstaysvb,.sqlprojstayssql,.csprojstayscsharp)..fsproj..csproj,.vbproj, and.sqlprojparsing is unchanged.Tests
test/fixtures/fsharp-fsproj:App.fsproj(net8.0, twoPackageReferences) referenced fromApp.sln, with versions fromDirectory.Packages.props. The scan lists the project, both packages and the CycloneDX components, andrunCoreScanattaches the project to the solution..fsprojnamed only by the solution (under a skippednode_modulesdirectory) is still scanned..fsprojwith no target framework inheritsnet8.0fromDirectory.Build.props..csproj,.vbproj,.sqlprojand.fsprojprojects from their file names.pnpm test,pnpm typecheckandpnpm lintpass.Closes #693