How to access Assembly Reference of all projects in a solution.
I am writing a test for clean architecture. I want to access the project assemblies of all the other projects inside my XUnit project so I can write tests for them. However, I'm stuck
4 Replies
You mean: dependencies -> add project reference?
No. for example private readonly Assembly DomainAssembly = typeof(Domain).Assembly;
You wish to use the xUnit test to validate references?
To enforce some sort of governance, right?
Exactly.
I want to enforce the clean architecture pattern