Hi I do not know if this is possible or not but I have a c# Project lets say A
and I am trying to access Assembly Info of another project B
so that i can get Method Info
of project B
using Reflection
. Problem is that i can not think of a way to integrate those two. Project A provides a openFileDialogue
and it selects .csproj
file. Reads it and extracts what files are being used in project B.
Can you suggest me a work out?
I don't think you can do that by using reflection. To work with reflection you'll need an assembly, not csproj (or cs files). You should look for a parser, maybe use the Roslyn APIs, that will give you information about the source code in syntax tree format. http://blogs.msdn.com/b/visualstudio/archive/2011/10/19/introducing-the-microsoft-roslyn-ctp.aspx