你如何分享Visual Studio项目/解决方案之间code? [英] How do you share code between projects/solutions in Visual Studio?

查看:232
本文介绍了你如何分享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.

这篇关于你如何分享Visual Studio项目/解决方案之间code?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆