将VS2017网站移至新目录 [英] Move VS2017 Website to New Directory

查看:148
本文介绍了将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:

< a href ="https://stackoverflow.com/a/2622537/9125096"> https://stackoverflow.com/a/2622537/9125096

https://stackoverflow.com/a/2622537/9125096

  ;

问候,

Fletcher

Fletcher


这篇关于将VS2017网站移至新目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆