I am creating a Code Analyzer assembly which can have dependency rules to govern other C# solution and assemblies. To create such rules, I have a class that inherits DiagnosticAnalyzer which contains the code for analysising.
I want to set a rule such that assembly "A" of a solution "XYZ", should not depend on any other assembly from the same solution. Now in my analyzer class I only have CompilationAnalysisContext which contains information about assembly "A".
I want to use CompilationAnalysisContext to get -
-> Which solution does the assembly "A" belongs to?
-> Then, get the names of all the assemblies of that solution,
to make sure that "A" is not depending on those assemblies.
I am creating a Code Analyzer assembly which can have dependency rules to govern other C# solution and assemblies. To create such rules, I have a class that inherits DiagnosticAnalyzer which contains the code for analysising.
I want to set a rule such that assembly "A" of a solution "XYZ", should not depend on any other assembly from the same solution. Now in my analyzer class I only have CompilationAnalysisContext which contains information about assembly "A".
I want to use CompilationAnalysisContext to get -
-> Which solution does the assembly "A" belongs to?
-> Then, get the names of all the assemblies of that solution,
to make sure that "A" is not depending on those assemblies.