C
C#11mo ago
che7598

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
L. MS
L. MS11mo ago
You mean: dependencies -> add project reference?
che7598
che7598OP11mo ago
No. for example private readonly Assembly DomainAssembly = typeof(Domain).Assembly;
Denis
Denis11mo ago
You wish to use the xUnit test to validate references? To enforce some sort of governance, right?
che7598
che7598OP11mo ago
Exactly. I want to enforce the clean architecture pattern
Want results from more Discord servers?
Add your server