-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing environment variables to dotnet-cyclonedx #659
Comments
I have a similar question. I have a Visual Studio solution which may provide different version of components depending on whether it is built in a Debug or Release configuration. I am finding that CycloneDX is reporting all of the Debug dependencies and none of the release dependencies. How does one pass the build configuration to CycloneDX? Alternatively, if there was a way to have CycloneDX report all dependencies no matter their build configuration, I could post process the results. Is this possible to do? If so, I am struggling to figure it out. Below, I have included an example of a csproj in the solution to help clarify question. Thank you in advance.
|
@cwa-dr I worked around my issues with having configuration dependent assets by building the solution as I normally would, then using the -dpr (Disable Package Restore) option with CycloneDX. With this option, CycloneDX is no longer responsible for all of the different options to restoring the assets/packages. Being somewhat new to Nuget and how SBOMs are built, it took me stepping through the CycloneDX source to understand what it was doing and what the dpr option meant. Maybe this will work for you and save you some time as well. |
This issue is stale because it has been open for 3 months with no activity. |
In some of my .csproj files I use variables to support different deployments.
example:
dotnet-cylonedx cannot resolve $(SourceDir) and will log an error that the project file does not exist.
How can I provide this $(SourceDir) as environment variable to dotnet-cyclonedx?
The text was updated successfully, but these errors were encountered: