[英]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. 假设我有项目A和项目B。在相同的解决方案中有它们,并且A引用B并将B用作一种从属进程。 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. 我不想对B的程序集名称进行硬编码,但我想知道如何查询项目A中的程序集名称,以便可以执行项目B的程序集。
typeof(B).Assembly.GetName()。Name;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.