Projects of a Solution C #

6

I have a question about projects and solutions in visual studio.

Assuming I have a solution that has three projects, two WinForms (exe) projects and one of class libraries. Is it okay to have two "exe" projects in a solution that uses the same class library?

Supplemented:

The two "exe" projects are:

1 - It is an application to register customers and other things for storage of dead archive boxes.

2 - The second and the application where the user launches the boxes.

3 - This is the shared library.

I could put the two together in one application, but the client wants it to be separate.

Today as I need to test, I go and mark the application as "startUp Project" and then build it.

Is there a technically better approach to this?

    
asked by Robss70 23.01.2017 в 17:34
source

2 answers

6
  

Is it okay to have two "exe" projects in a solution that uses the same class library?

Yes, it's super normal. In fact, I already participated in a project that had 5 executables and a few more web projects in the same solution.

There is still the option of making multiple solutions with just a few .csproj , I do not think this is in your case interesting.

If you are interested in this, just create a blank solution and add the existing projects you want in this solution. It's an approach I've seen a lot when project scope changes drastically. As for example a solution containing everything for the main system and the project with the shared classes, another solution with everything for the system management web, plus the shared classes and another solution with the projects < in> mobile and more shared classes.

  

Today as I need to test, I go and mark the application as "startUp Project" and then build it. Is there a technically better approach to this?

I do not know if it's technically better, but it's still possible to run multiple projects at the same time. Going on the Debug > Start new instance

    
answered by 23.01.2017 / 17:43
source
1
  

Today as I need to test, I go and mark the application as   startUp Project and then build. There is a   technically better for this?

You can start more than one project in your solution through Solution Properties > Common Properties > Startup Project > Multiple startup projects

In the Action column you select the desired action for each project.

    
answered by 23.01.2017 в 17:58