Answer the question
In order to leave comments, you need to log in
Linking two projects in one solution?
I have console and window application projects in the same solution. I need to launch the console from the form with the necessary parameters, and I was hoping that one project would be able to access another (for example, know the path to its executable file), but I don’t see any difference with single projects. I also do not understand what gives the dependence of one on the other. What is the point of the general solution then, or am I doing something wrong?
Answer the question
In order to leave comments, you need to log in
Projects in one solution - as a rule, are not interconnected. But if, for example, one project is a dll library, and the second is an executable, then you can connect the output library to the executable file.
In this case, you can "cut" both projects at the same time.
It can also be a complex project consisting of several executable files. For example - a program for use by the client and an administrative panel. It is logical to combine them into one solution. If these projects have shared libraries, they can also be added as new projects.
Actually, you set up the organization of interaction of several projects in one solution yourself.
A solution is simply a way to conveniently group multiple projects. It is only needed for the IDE.
Relationships between projects are made via PackageReference
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question