[英]How to add multiple solution reference in Visual Studio
This is more like a beginner question, but till now I have worked on small C# projects and I know how to add a separate project. 这更像是一个初学者的问题,但是到目前为止,我一直在研究小型C#项目,并且知道如何添加单独的项目。
I will create a class library, and add reference of it as per needed, and then I am good to go. 我将创建一个类库,并根据需要添加对它的引用,然后我就可以开始了。 I will have something like below:
我将有以下内容:
Project Main -> references Project Temp1
-> references Project Temp2
But all this when built will form ONE .sln
file. 但是所有这些在构建时将形成一个
.sln
文件。
Question: how can I link separate .sln
? 问题:如何链接单独的
.sln
? So, I have 5 separate Visual Studio solutions, and I want to add reference, how to achieve it? 因此,我有5个独立的Visual Studio解决方案,我想添加参考,如何实现呢? Is it possible for one
.sln
file to link to another .sln
file? 一个
.sln
文件可以链接到另一个.sln
文件吗?
Edit : I created a sample application A1
, and another application B1
. 编辑 :我创建了一个示例应用程序
A1
和另一个应用程序B1
。 And now when I go to Project A1 and click on Add reference why don't I see project B1
there? 现在,当我转到Project A1并单击“添加引用”时,为什么我看不到项目
B1
?
Your screenshot shows the reference manager with item "Projects > (current) Solution" open. 屏幕截图显示了参考管理器,其中已打开“项目>(当前)解决方案”项。 This list shows all projects in currently opened solution.
此列表显示当前打开的解决方案中的所有项目。 To see your "B1" project here, add it to solution first:
要在此处查看“ B1”项目,请先将其添加到解决方案中:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.