-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
BOM creation fails when used latest dotnet-CycloneDX (0.11.0) #183
Comments
Hi @shounakitraj, that project file doesn't look valid to me. What framework is this? Older versions of the tool would parse project file package references. Unfortunately this can miss dependencies. For example when an explicit version isn't specified and dependencies that are brought in as a result of the target framework. With newer versions of the tool a dotnet restore is triggered. This generates a project.assets.json file which includes all dependencies that are being used in the build. Does dotnet restore work with that project file for you? |
Hi @coderpatros, Thanks for quick response. Actually this is "Directory.Build.targets" file which contains list of all server side libraries required for project.
I am converting this .targets file to .csproj by replacing "Update" keyword to "Include" The project is working correctly and have no issues while compiling, The reason I need to use .targets file is, we have multiple projects in our solution file and we are maintaining this single .targets file for resolving all dependencies required in all projects. |
Ah, try adding a section like this under the project element (just update the target framework)...
But we should support that use case. Are you able to send me any more details on your project structure, sanitised project files, etc that I might be able to replicate it locally? coderpatros at outlook dot com |
Thanks @coderpatros, I have shared the details on email to you. Please let me know if you require any more information. |
This issue is stale because it has been open for 3 months with no activity. |
Hi Steve,
When I am trying to use latest dotnet-CycloneDX (0.11.0) version for creating BOM file I am getting following message, so I am using dotnet-CycloneDX (0.9.0) is using:
My file.csproj contains following contents:
The text was updated successfully, but these errors were encountered: