- In order to build the SBOM tool, please download and install Dotnet SDK version 3.1.300 or greater.
- Clone this GitHub repo.
Execute the following dotnet command from the root of the sbom tool repo to build the tool.
dotnet build
The most basic run:
dotnet run --project src/Microsoft.Sbom.Tool generate -- -b <drop path> -bc <build components path> -pn <package name> -pv <package version> -nsb <namespace uri base>
You can add --no-restore
or --no-build
if you don't want to rebuild before the run
You can add --Debug
to get the application to wait for debugger attachment to complete.
- Open Microsoft.Sbom.sln in Visual Studio
- Set the Microsoft.Sbom.Tool project as the startup project (rightclick-> Set as Startup Project)
- Set Run arguments for the Microsoft.Sbom.Tool project (rightclick->properties->Debug)
Minimum:generate -b <drop path> -bc <build components path> -pn <package name> -pv <package version> -nsb <namespace uri base>
- Now, any time you make a change, you can press
F5
. This will build the changes, and start the process in debug mode (hitting any breakpoints you set)
If you have access to GitHub Codespaces, select the Code
button from the repository homepage then select Open with Codespaces
. That's it! You have a full developer environment that supports debugging, testing, auto complete, jump to definition, everything you would expect.
This is similar to Codespaces:
- Make sure you meet the requirements and follow the installation steps for DevContainers in VS Code
git clone https://github.com/microsoft/sbom-tool
- Open this repo in VS Code
- A notification should popup to reopen the workspace in the container. If it doesn't, open the
Command Palette
and typeRemote-Containers: Reopen in Container
.
A full list of arguments can be found in here