CycloneDX /cyclonedx-dotnet

Creates CycloneDX Software Bill of Materials (SBOM) from .NET Projects

★ 301⑂ 126👁 11⑃ 884● 250▤ 65
C#Apache-2.0Created 2018-10-02cyclonedx.org/
Download: 6.3.26.3.2 ↓6.3.22026-11-20
+0
Daily
+1
Weekly
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

Discussions

Latest release

6.3.2 v6.3.2 2026-11-20
Fixed

- 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

Snapshot: 2026-11-27T22:26:53Z · Data license Apache-2.0 · JSON