简体   繁体   English

项目如何在解决方案中进行交互

[英]How do Projects interact in a Solution

I did some googling but to no awail. 我做了一些谷歌搜索,但没有发现。 Which is probably due to not knowing the correct lingo. 这可能是由于不知道正确的行话。

How do Projects interact/ how would you actualy write the interface between them. 项目如何进行交互/您将如何编写它们之间的接口。

Im not looking for the theory, which was quit easy to find on the msdn, but for the practical application in the VS-enviroment, how to write a library (dll)/ how to have projects interact with each other, and so on. 我不是在寻找在msdn上很容易找到的理论,而是在VS环境中的实际应用,如何编写库(dll)/如何使项目彼此交互等等。

I do not ask you to do my work. 我不要求你做我的工作。 But some online resources. 但是一些在线资源。

If what you mean is accessing classes and such from other projects in your solution, all you have to do is add the project as a reference and include its namespace in the file you want to use things from the other project in. 如果您的意思是要从解决方案中的其他项目访问类等,那么您要做的就是将项目添加为引用,并将其命名空间包含在您要使用其他项目中的文件中。

To add a reference, right click References in the solution explorer, then Add Reference->Solution->Projects->Project you want to add. 要添加引用,请在解决方案资源管理器中右键单击“引用”,然后单击要添加的“添加引用”->“解决方案”->“项目”->“项目”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Microsoft Azure的同一解决方案中引用项目 - How do I reference projects in the same solution in Microsoft Azure Visual Studio可扩展性,如何枚举解决方案中的项目? - Visual Studio Extensibility, How do you enumerate the projects in a solution? 如何从解决方案中的所有项目中卸载* a *软件包 - How do I uninstall *a* package from all projects in solution 如何以编程方式列出解决方案中的所有项目? - How do I programmatically list all projects in a solution? 如何将同一解决方案中的 2 个项目推送到我的 Github 存储库? - How do push 2 projects in the same solution to my Github repository? 如何使用EnvDTE列出当前解决方案中的所有项目? - How do I list all the projects in the current solution using EnvDTE? 如何与对象交互? - How do I interact with objects? 解决方案项目 - projects in solution 如何将Java解决方案组织到多个项目中,例如在Visual Studio中? - How do you organise a Java solution into multiple projects, like in Visual Studio? 如何在Visual Studio 2012中切换(或突出显示)同一解决方案的项目? - How do i switch between (or highlight) projects of the same solution in Visual Studio 2012?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM