Skip to content
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

Feature request: Scan a specific csproj #178

Open
prabhu opened this issue Nov 11, 2022 Discussed in #168 · 4 comments
Open

Feature request: Scan a specific csproj #178

prabhu opened this issue Nov 11, 2022 Discussed in #168 · 4 comments
Labels
enhancement New feature or request

Comments

@prabhu
Copy link
Collaborator

prabhu commented Nov 11, 2022

Discussed in #168

Originally posted by sduquette-devolutions October 14, 2022
We have a project that has multiple csproj files in the same folder for different tools based on the same codebase. With dotnet-cyclonedx we can pass the path to the csproj file to generate them separately. It would be useful if we could do the same thing with cdxgen. I was wondering if you had ideas how best to implement that.

@prabhu prabhu added the enhancement New feature or request label Nov 16, 2022
@metametadata
Copy link
Contributor

I'd like the same feature to scan, say, a specific pom.xml or composer.lock.

@prabhu
Copy link
Collaborator Author

prabhu commented Aug 15, 2024

Can you pass the directory for the specific csproj file? It should work fine

@metametadata
Copy link
Contributor

It's unsafe as there can be other scannable files in the same directory. It can be somewhat protected against by specifying, say --type java to scan only pom.xml. But it's would still not reflect the consumer's goal (to scan a single file) and will scan more than expected in the edge cases.

And then it would also be great to fail loudly in case the explicitly specified file doesn't exist.

@prabhu
Copy link
Collaborator Author

prabhu commented Aug 15, 2024

@metametadata True. It's a non-trivial change and one that none of my current clients would fund. I will consider this for cdxgen v11, but someone has to pay the invoices for both development and testing efforts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants