Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

asp.net - empty website and git

hi as 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 the visual studio make a directory to the solution in Projects folders for VS2012 at documents and The BLL and DAL and the website pages itself at websites directory for visual studio main directory . so when i trying to add the solution the source control this message shown up :

the current solution has projects that are located outside the solution folder. there 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 :D how can i make this work ?

thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...