如何将多个Visual Studio解决方案链接在一起? [英] How to link multiple visual studio solutions together?

查看:272
本文介绍了如何将多个Visual Studio解决方案链接在一起?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有3个解决方案,而解决方案A需要从解决方案B和C生成dll的内置版本才能进行编译.不可能将其合并为一个解决方案...

I have 3 solutions and solution A requires built versions of the dlls from solution B and C in order to compile. it is not possible to merge it to one solution...

到目前为止,似乎Visual Studio不支持解决方案引用,而如果我尝试这样做的话,msbuild足够聪明,可以知道您正在从另一个解决方案中构建一个解决方案.总体目标是尝试使多个解决方案看起来几乎只有一个-解决方案A.

So far it seems that Visual Studio doesnt support solution references and msbuild is clever enough to know that you are building one solution from another etc if I try that way. The overall goal is to try to make the multiple solutions seem almost like there is only one - just solution A.

我相信这是一个普遍的问题,但是如何将它很好地链接起来呢?

I believe this is a common problem, but how do you link it up nicely?

推荐答案

此问题在不同中弹出,但相关表格.实际上,有一个涵盖该内容的MSDN页面.

This question has popped up in different, but related, forms. There is actually an MSDN page that covers this.

您正在寻找的是一种类似于适用于大型系统的分区单一解决方案模型的多解决方案方法.有一个一切"解决方案可以构建所有内容并维护组件之间的依赖性.这就是您需要构建解决方案A时要构建的内容.然后,您将拥有仅包含组件B或C的单独解决方案.本质上,您仍然会有3个解决方案,但是您需要将解决方案B和C中的项目添加到解决方案中答:

What you're looking for is a multi-solution approach akin to the Partitioned Single Solution Model for Larger Systems. Have one "everything" solution that builds everything and maintains your inter-component dependencies. This is what you build when you need to build solution A. You then have separate solutions that only include components B or C. Essentially, you'll still have 3 solutions, but you'll add the projects from solutions B and C into solution A.

这篇关于如何将多个Visual Studio解决方案链接在一起?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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