你如何分享Visual Studio项目/解决方案之间code?
问题描述:
我有两个解决方案,其中有一些共同的code,所以我想提取出来,并在它们之间共享。此外,我想能够独立释放库,因为它可能是有用的人。
I have two solutions which have some common code, so I'd like to extract it out and share it between them. Furthermore, I'd like to be able to release that library independently because it might be useful to others.
- 什么是使用Visual Studio 2008中做到这一点的最好方法是什么?
- 是一个项目,present在一个以上的解决方案?
- 请我有一个单独的一块code单独的解决方案吗?
- 可以解决依赖于另外一个?
答
一个项目可以由多个解决方案引用。
A project can be referenced by multiple solutions.
把你的库或核心code到一个项目,然后引用这两个解决方案项目。
Put your library or core code into one project, then reference that project in both solutions.