As I am a newbie to GIT with Visual Studio,
I'm working with an n-tier website with multiple projects, and at first, I make it as an empty website, so Visual Studio creates a directory for the solution in the Projects folder for VS2012 on documents
directory, and the BLL
and DAL
along with website pages, in the websites
directory for the Visual Studio main directory.
So when I try to add the solution to the source control, this message shows up:
The current solution has projects that are located outside the solution folder.
Their projects will not be source-controlled in the git repository.
To add all the projects to a single Git repository, please consolidate all projects under a single folder
I tried to copy the website into my solution folder, but nothing happened, of course. How can I make this work?
Thanks
You can delete the website from the solution in visual studio, and then 'add existing project' to solution. Otherwise create a new empty website and enter the solution directory as the location for the website instead of the default location.