[英]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.