Click here to Skip to main content
15,904,023 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a web site project developed in Visual Studio 2010 where the solution file is Visual Studio 2010\Projects\Rascal\Rascal.sln and the website files and folders are under Visual Studio 2010\WebSites\Rascal\. This is the way Visual Studio 2010 set it up.

I work on the project now in Visual Studio 2019. I cannot source control the project using Git. I get the error: The current solution has projects that are located outside the solution folder.These projects will not be source controlled in Git repository.To add all the projects to a single Git repository please consolidate all projects under a single folder.

How do I deal with this? I have tried moving Rascal.sln to the web site folder but this did not help. I have also tried consolidating the files into the one directory a number of ways but still no luck.

Any help would be appreciated.

Thanks...Alan

What I have tried:

I have tried moving Rascal.sln to the web site folder but this did not help. I have also tried consolidating the files into the one directory in a number of ways but still no luck.
Posted
Comments
Richard MacCutchan 5-Apr-20 4:43am    
Create a skeleton website project in VS 2019, and you will see what the folder structure should be.
Member 11049077 5-Apr-20 20:47pm    
Thanks Richard

I have done this to the extent of moving those Rascal files and directories equivalent to that of the skeleton website project to the repos folder of VS2019 to form /repos/Rascal. The constructed repos/Rascal website only half works.
1. I can get source control to work locally but on uploading to Github only the .gitignore and .gitattributes files are uploaded.
2. The website does not fully work locally in that running the website in debug, it initially starts at localhost as expected but then flips for some reason to the production website housed on a commercial ISP.
3. I needed to edit the solution file so that instead of referring to:
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "Rascal", "..\..\..\Visual Studio 2010\WebSites\Rascal\", "{D9E7E935-0035-4B6D-8F4E-5AD9C2B786EA}"
I changed it to:
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "Rascal", "Rascal\", "{D9E7E935-0035-4B6D-8F4E-5AD9C2B786EA}".
There were two other similar lines in the solution file that I changed accordingly.

So this approach is only partly working so far.

Thanks for your assistance.
Cheers...Alan

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