❔ Create new project in folder
Anyone got a tip for creating a new project inside a folder in visual studio?
or make the .sln file treat the project as part of the project but place correctly at that location?
11 Replies
You can create the project(s) via the CLI wherever you want, then add them to the sln later, either via CLI or VS
the probem when I add existing projects to the
.sln
, it add the project locate at same level as root projects not the location I wantyou shouldn't be trying to add projects under other projects. don't do it
each project should have it's own root directory with no projects underneath it
you can create the project wherever you want
just don't try to nest a project in a child directory of an already existing project
the view you are currently looking at in Visual Studio is the "Solution Explorer" view. It is not a representation of the file structure
the project can be located anywhere on your file system but it will be listed at the top level in the Solution Explorer unless you make a solution folder
if you click that button in Visual Studio it will switch to the folder view
which shows the files as they exist in the file structure
I'm not encouraging you to click that button as you may confuse yourself... but I'm just mentioning it since you seem to be confusing the standard Solution Explorer view with the folder view
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I did it I used solution folder, much better now
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I like this
the test project should live inside that folder
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.