将VS2017网站移至新目录
将现有Visual Studio 2017网站从一个目录移动到另一个目录的最佳方法是什么。我知道我不能只复制它,因为打开网站的.sln文件将查找最初创建文件的目录,以查找其他文件的所有
。是否像在新目录中创建新网站并将除.sln文件之外的所有文件从旧目录复制到新目录一样简单?不知何故,我认为不是。
What is the best way to move an existing Visual Studio 2017 website from one directory to another. I know I can't just copy it because the .sln file which opens the website will look in the directory in which the file was originally created to find all the other files. Is it as easy as creating a new website in the new directory and copying all the files except the .sln file from the old to the new directory? Somehow, I don't think it is.
在Visual Studio解决方案资源管理器中,您可以:以下方法更安全我认为
In Visual Studio Solution Explorer you could: the below method is much safer I think
"删除项目来自您的解决方案
在解决方案资源管理器窗口中右键单击它并选择删除。移动整个项目文件夹,包括子目录,无论您想要去哪里。将项目添加回您的解决方案。"
"Remove the project from your solution by right-clicking it in the Solution Explorer window and choosing Remove. Move the entire project folder, including subdirectories wherever you want it to go. Add the project back to your solution."
参考 主题:
Reference thread:
https://stackoverflow.com/a/2622537/9125096
https://stackoverflow.com/a/2622537/9125096
  ;
问候,
Fletcher
Fletcher