NuGet dependency graph
Version updated for https://github.com/Tsabo/nugraph-action to version v4.
- This action is used across all versions by 1 repositories.
Action Type
This is a Composite action.
Go to the GitHub Marketplace to find the latest changes.
Action Summary
This GitHub Action generates a NuGet dependency graph from a .NET solution or project using the nugraph tool. It supports generating both SVG and Mermaid diagrams, and can customize graph styles. The action also automates local builds by default and appends graphs to job summaries.
What’s Changed
When project-path is a solution, different projects sometimes need different nugraph flags — most commonly a Blazor WebAssembly project needing -r/--runtime browser-wasm, since nugraph can’t currently resolve its ambiguous ridless/browser-wasm targets on its own.
Changes
extra-argsis now solution-aware: whenproject-pathis a solution, it’s parsed as newline-separated entries instead of a single flat string- A line starting with
-(e.g.--framework net8.0) is a global flag applied to every project — existing single-line, solution-wideextra-argsvalues keep working unchanged - A
ProjectName=argsline (ProjectNameis the project file name without its extension,*wildcards supported) applies only to that project, appended after the global flags
- A line starting with
- No behavior change when
project-pathis a single project —extra-argsis still a plain space-separated flag string, exactly as before
Note: this works around a nugraph/Chisel limitation affecting every Blazor WebAssembly project — its project.assets.json always contains both a ridless target and an implicit browser-wasm target, which nugraph currently can’t disambiguate without -r/--runtime passed explicitly for that project.
Usage
- uses: Tsabo/nugraph-action@v4
with:
project-path: ./src/MyApp.sln
output-path: artifacts/nugraph/graph.svg
extra-args: |
MyApp.Client=--runtime browser-wasm