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

Support Directory.Build.targets #25

Open
sorensenmatias opened this issue Jul 28, 2022 · 2 comments
Open

Support Directory.Build.targets #25

sorensenmatias opened this issue Jul 28, 2022 · 2 comments

Comments

@sorensenmatias
Copy link
Contributor

If two projects are sharing PackageReferences using a Directory.Build.targets file, Snitch is reporting the shared PackageReferences as removable from both projects.
See here for more information: https://docs.microsoft.com/en-us/visualstudio/msbuild/customize-your-build?view=vs-2022

@felpel
Copy link

felpel commented Aug 21, 2022

The tool doesn't work so well with Directory.Build.props neither, with many false positives.

@patriksvensson
Copy link
Member

It's a complex problem to solve since a design-time build doesn't provide information (to my knowledge) about the origin of the package/project reference. I can take a look when I have time, but I can't promise it's solvable. If anyone wants to take a stab at this, feel free to do so!

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

No branches or pull requests

3 participants