-
-
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
Test projects are not excluded with option "exclude-test-projects" #669
Comments
Please add the property |
I can confirm this bug. In Directory.Build.Props we set the property
But during the run it was analyzed even though we called it with the option to ignore test projects. When we set it directly in the csproj file, it is skipped as expected. |
The cyclonedx-dotnet tool uses solution, project and intermediate output file Therefore the definition of the IsTestProject property in a *.props or *.target file which is resolved during build target execution cannot be used for the exclude-test-projects option. This limitation for exclude-test-projects option should be documented in README.md.
|
This is technically understood - but from a user perspecitve I am now forced to apply an error prone + manual process (to add the flag everywhere and don't forget that in the future) where there is already a better and central place. What about having an --ignore-pattern commandline paramter, where I can specify pattern to ignore projects that should not be scanned? |
A new feature with a command line option Anyway, #736 might be a better solution which also allows to eliminate some low level XML document handling. |
This issue is stale because it has been open for 3 months with no activity. |
Just for information, I had the same issue in a .net framework 4.8 project. The Turns out, I had to migrate the |
Opening a new issue because the previous one was closed, but didnt fixed all the cases as I explained in my comment:
#363 (comment)
The text was updated successfully, but these errors were encountered: