Search code examples
visual-studioarchitecturediagram

How to ignore test projects in a Visual Studio dependency validation diagrams


I've created an architecture diagram using Visual Studio's Architecture/New Dependency Validation Diagram.

All seems fine and dandy except that I'm unable to find a way to exclude my test projects (and my dependency injection project) as the tests (and DI) don't really matter to me as far as architecture validation goes.

I've taken a look at the docs and done a fair bit of googling yet haven't managed to find anything immediately useful.

If you have any ideas or superior Googling skills your help would be greatly appreciated!

Diagram and issues

Using Visual Studio Enterprise, 2019 v16.4.5


Solution

  • You can add DV2002 to the suppress warnings section of the Build properties of the project your working on.Click for example