Christian Klemm
Christian Klemm

Reputation: 1505

Get assembly name of referenced project

Let's say I have project A and project B. I have them in the same solution and A references B and uses B as a kinda slave process. I don't want to hardcode the assembly name of B but I'm wondering how to query the assembly name in project A so I can execute the assembly of project B.

Upvotes: 3

Views: 3972

Answers (1)

suulisin
suulisin

Reputation: 1434

typeof(B).Assembly.GetName().Name;

Upvotes: 8

Related Questions