Skip to content
/ DPI Public

Dependency Inventory .NET Tool - Inventories dependencies to Azure Log Analytics

License

Notifications You must be signed in to change notification settings

devlead/DPI

Folders and files

NameName
Last commit message
Last commit date
Mar 13, 2025
Feb 6, 2025
Jan 5, 2021
Jan 21, 2025
Mar 10, 2021
Nov 23, 2024
Mar 13, 2025
Jan 5, 2021
Jan 5, 2021
Jan 20, 2025
Mar 12, 2025
Mar 19, 2025
Jun 22, 2021
Jan 21, 2025

Repository files navigation

DPI

NuGet

Dependency Inventory .NET Tool - Inventories dependencies and reports to Azure Log Analytics

You can get an introduction to the tool, in the blog post: Introducing DPI - A DevOps tool to inspect dependencies and report to Azure Log Analytics

Obtain

dotnet tool install -g dpi

Commands

Use -h / --help to get the current list of available commands and options.

dpi --help

nuget

The NuGet branch of commands have recursively from given path inventories packages present in

  • csproj (project assets if restored)
  • packages.config
  • .NET Tool manifests
  • Cake build script files

analyze

nuget analyze command inventories and outputs result to console or file.

# Output as table (default)
dpi nuget --output table analyze

# Output as JSON
dpi nuget --output json analyze

# Output as Markdown
dpi nuget --output markdown analyze

# Save output to file
dpi nuget --output json --file dependencies.json analyze

report

nuget report analyzes and reports the result to Azure Log Analytics.

export NuGetReportSettings_WorkspaceId=<workspaceid>

export NuGetReportSettings_SharedKey=<sharedkey>

# Output as table (default)
dpi nuget --output table report

# Output as JSON
dpi nuget --output json report

# Output as Markdown
dpi nuget --output markdown report

# Save output to file
dpi nuget --output json --file report.json report