title: Extract Attributes from c# source code without Reflection
body: <p>I want to extract <code>custom attributes</code> from source code from different <code>.CS</code> files. I have list of files .</p>
  
  <p>Scenario is that i have <code>Project A</code> which reads files of <code>Project B</code>. It has to extract all attributes used in <code>Project B</code>.</p>
  
  <p>My question is that how can i do that without using <code>Reflection</code>. 
  Reflection deals with assemblies but i have source code.</p>
  
  <p>Using Roslyn would be over kill?</p>
  
  <p>what approaches are there?</p>
  
  <p>I had another option to Compile using <code>MSBuild</code> but for large scale projects it would not be feasable due to heavy dependencies. and it seems not a good way to build application and then going for its assemblies</p>
  
  <p>i just want to have some sort of thing that tells me what attribute was on what class and possible a UML diagram of relations of that classes.</p>
  
  <p>Please give your suggestions</p>