Solution has projects that are located outside the solution folder

前端 未结 6 1521
萌比男神i
萌比男神i 2021-02-05 06:36

I tried to add my solution to the local repository by selecting File|Add to Source Control, but I got the following message.

6条回答
  •  天命终不由人
    2021-02-05 07:39

    This was happened with me a few months ago (on Visual Studio 2017). And following solved the issue :

    1. Close Visual Studio
    2. Delete .git folder (which is hidden by default)
    3. Open Visual Studio. Add the solution to source control

    Don't forget to check in case there is any .git folder in the project root folder.

    Note : You'll loose the historical data.

提交回复
热议问题