Should I place solution and project in the same directory?

Should I place solution and project in the same directory?

For multiproject solutions, having the directory structure reflect the solution structure usually makes more sense—it is best to have a directory that contains your solution file, with subdirectories for each individual project. NET will not place the solution files in the same directory as the project.

How do I add an .SNN file to a project?

Adding a project to a solution file Once you have a solution file, you can add a project to it using the sln add command, and provide the path to the project’s . csproj file. This will add the project to an existing solution file in the current folder.

How do I add a folder to Visual Studio solution?

Create a project and import source

  1. Start Visual Studio.
  2. Click File > New > Project.
  3. Right-click your project in Solution Explorer and select Add > Existing Item.
  4. Click Add and navigate to the folder containing the files you want to add to the project.
  5. Choose the files you want to add and then click Add.

How do I add a folder to solution?

Just use the context menu for the solution and just below the option of creating a new solution folder you now find ‘Add Folder as Solution Folder’. This will create a solution folder with the same name as you selected and add the items inside of that folder to the solution folder. This will not move the files on disk.

How to add an existing project to a solution?

To add an existing project to a solution 1 In Solution Explorer, select the solution. 2 On the File menu, point to Add, and click Existing Project. 3 In the Add Existing Project dialog box, locate the project you want to add, select the project file, and then click Open. See More….

How to add multiple projects to Visual Studio Marketplace?

Optionally creates the solution folder structure reflecting to the physical hierarchy on disk. See the change log for changes and road map. Add mutliple projects to solution. Load projects from given directory (recursive search by file extension).

When to combine tools into a common project?

If you can’t envision a name for it, besides “Common” or “Tools”, then possibly it still belongs in a separate project, but possibly a common shared project for stuff that doesn’t fit, but is still reusable. Combine it into an existing common project with the same level of (or lack of) dependencies.

What happens when you have too many projects?

Too many projects can get out of hand and become a mental or visual burden. If I find myself forgetting where something is, it is probably not in the right place. If I find myself with a screen full of collapsed project nodes, the visual load may also be a bit high for productivity, but not always.