Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have complete software built on .net code and visual studio 19 ver that has both windows and web apps. On the folder level complete code is inside a C:\Code\source\v2.000 and BuildAll.sln that builds the complete software is C:\Code\source\v2.000_BuildAll\ and .sln references the projects as below

Project("{GUI-ID}") = "ProjectName", "..\ProjecctPath", "{GUI-ID}" EndProject


The structure of my solution control(.sln) is as below in visual studio

Solution BuildAll
-Lib (Folder) Around 50 of projects (.csproj) inside
-Api (Folder) 4 projects (csproj) inside
-Apps (Folder) 4 Windows apps projects
-WindowsServices (Folder) 2 winservice projects
-Web (Folder) 2 mvc projects

As we migrate to git, when I do File>Add to source control, it gives me error that "Your solution contains files outside solution folders which will not be managed by git" and these are actually inside v2.000 but somewhere in sub folders like \v2.000\libs\ or \v2.000\apps\ or v2.000\coreframework\ Is there a way to put all the code structure to git. I understand, 1 .sln means 1 git, i am not sure why this behaviour/error at visual studio. My reference libraries are not in BuildAll folder but very well inside ..\v2.000. Any help suggestion would be appreciated.

PS: sorry about the long description, did this to make things clear

What I have tried:

I have tried addd source control but it says :
"Your solution contains files outside solution folders which will not be managed by git"
Posted
Updated 6-Sep-21 1:55am

1 solution

Rather than opening the solution, try opening the v2.000 folder. You should then be able to add the entire folder to source control.

Develop code without projects or solutions - Visual Studio (Windows) | Microsoft Docs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900