CycloneDX /cyclonedx-dotnet
Creates CycloneDX Software Bill of Materials (SBOM) from .NET Projects
★ 301⑂ 126👁 11⑃ 884● 250▤ 65
+0
日增长
+1
周增长
301
stars
126
forks
11
watchers
884
prs
250
issues
65
releases
README
CycloneDX module for .NET [![shield_nuget-version]][link_nuget] [![shield_docker-version]][link_docker] [![shield_github_ci]][link_github_ci] [![shield_license]][License] [![shield_website]][link_website] [![shield_slack]][link_slack] [![shield_groups]][link_discussion] [![shield_twitter-follow]][link_twitter] [shield_nuget-version]: https://img.shields.io/nuget/v/CycloneDX?label=NuGet&logo=nuget&logoColor=white "NuGet Version" [shield_docker-version]: https://img.shields.io/docker/v/cyclonedx/cyclonedx-dotnet?label=Docker&logo=docker&logoColor=white "docker" [shield_github_ci]: https://img.shields.io/github/actions/workflow/status/CycloneDX/cyclonedx-dotnet/dotnetcore.yml?branch=master&logo=github&logoColor=white "Build Status" [shield_coverage]: https://img.shields.io/codacy/coverage/xxxx?logo=Codacy&logoColor=white "test coverage" [shield_license]: https://img.shields.io/github/license/CycloneDX/cyclonedx-dotnet?logo=open%20source%20initiative&logoColor=white "license" [shield_website]: https://img.shields.io/badge/https://-cyclonedx.org-blue.svg "homepage" [shield_slack]: https://img.shields.io/badge/slack-join-blue?logo=Slack&logoColor=white "slack join" [shield_groups]: https://img.shields.io/badge/discussion-groups.io-blue.svg "groups discussion" [shield_twitter-follow]: https://img.shields.io/badge/Twitter-follow-blue?logo=Twitter&logoColor=white "twitter follow" [link_nuget]: https://www.nuget.org/packages/CycloneDX/ [link_docker]: https://hub.docker.com/r/cyclonedx/cyclonedx-dotnet [link_github_ci]: https://github.com/CycloneDX/cyclonedx-dotnet/actions/workflows/dotnetcore.yml [link_codacy]: https://app.codacy.com/gh/CycloneDX/cyclonedx-dotnet [link_website]: https://cyclonedx.org/ [link_slack]: https://cyclonedx.org/slack/invite [link_discussion]: https://groups.io/g/CycloneDX [link_twitter]: https://twitter.com/CycloneDX_Spec ---- The CycloneDX module for .NET creates a valid CycloneDX bill-of-material document containing an aggregate of all project dependencies. CycloneDX is a lightweight BOM specification that is easily created, human readable, and simple to parse. This module runs on .NET 10.0 .NET 9.0 .NET 8.0 Usage CycloneDX for .NET is distributed via [NuGet][link_nuget] and [Docker Hub][link_docker]. Installing via NuGet bash dotnet tool install --global CycloneDX If you already have a previous version of CycloneDX installed, you can upgrade to the latest version using the following command: bash dotnet tool update --global CycloneDX Execution bash dotnet-CycloneDX -o Note: If you encounter a "command not found" error after installation, try restarting your terminal. Also, ensure that the ~/.dotnet/tools directory is included in your PATH. For guidance on what to point the tool at, how to restore, and how to set BOM metadata, see docs/best-practices.md. Execution via Docker bash docker run --rm --user $(id -u):$(id -g) \ -v $(pwd):/work \ cyclonedx/cyclonedx-dotnet [OPTIONS] /work/
Top issues
#603System.IO.InvalidDataException: Central Directory corrupt with 2.4.142 comments · 2022-10-14#606CycloneDx 2.5.1 throwing notFound Error23 comments · 2022-10-25#836BOM should include Framework Components10 comments · 2024-01-21#588.NET6 Client-Side Libraries Missing from BOM10 comments · 2022-09-28#916Question: Is there a reason why there is no command line option to sign the generated sbom-file using a given key?9 comments · 2024-11-19#843Scope property is always being set to required9 comments · 2024-01-28#669Test projects are not excluded with option "exclude-test-projects"9 comments · 2023-03-29#583Support Multiple Nuget Feeds9 comments · 2022-09-21
Discussions
#1125Support PackageReference for native C++ (.vcxproj) projects0 comments · 2026-08-24#1124CISA 2026 Minimum Elements for a Software Bill of Materials (SBOM)0 comments · 2026-08-12#1104SBOM for docker image2 comments · 2026-06-24#1096Is it possible to add the NuGet package source URL to the report1 comments · 2026-05-27#1077How does this differ from CDX-Gen -t dotnet1 comments · 2026-04-20#971Multi-Level dependency resolution for nuget packages?0 comments · 2025-09-05#947Licenses in the SBOM file0 comments · 2025-05-16#941SBOM according to BSI TR-031830 comments · 2025-04-29
Latest release
6.3.2 v6.3.2 2026-11-20Fixed - Duplicate references in dependsOn (1143, 1145): When dependency edges from different projects resolve to the same component, its reference now appears only once in the SBOM. Distinct package versions are still retained. - Runtime dependencies for Windows targets (1147, 1148): CycloneDX now uses the target alias recorded by .NET 11 restore. Runtime packages brought in through a project reference stay required, including with --exclude-dev. - Docker startup for non-root users: The image now provides a writable home directory so the .NET SDK can initialize NuGet when run with an arbitra