开发者

Extracting all class names from a solution in vs 2008

开发者 https://www.devze.com 2023-01-19 14:44 出处:网络
I am trying to extract all class names from my solution in C3 vs 2008. I am able to do this for a single project using reflection passing the assembly name. But the problem is how can i get this worki

I am trying to extract all class names from my solution in C3 vs 2008. I am able to do this for a single project using reflection passing the assembly name. But the problem is how can i get this working for my entire solution?.

Is there any way i can extract all assembly names from my solution? My solution basically has 10 projects and i want to extract infor开发者_StackOverflow社区mation from all projects.


If it's not about a run time, you can try to use ILDasm tool to fetch class names from a compiled assembly. For example:

ildasm /text /classlist /noil <file_name>

or a next command to parse all libraries in a current folder:

for %f in (*.dll) do ildasm /text /classlist /noil %f


The solution file will list all the projects in the solution - it is a fairly straight forward text file to parse. You can use this to get a list of all the projects and then use your current approach.

0

精彩评论

暂无评论...
验证码 换一张
取 消