Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的解决方案中有三个独立的项目。原始和辅助以及控制台应用程序。辅助程序集对原始程序集的引用和对辅助程序的控制台应用程序引用。如何在控制台应用程序的原始程序集中使用枚举(类型)而不引用它?
检查 Visual Studio 的共享项目。
它允许有多个项目的代码,每个项目将共享项目编译为自己的代码,因此您不需要引用公共代码。