Visual Studio将项目移到其他文件夹 [英] Visual Studio move project to a different folder

查看:728
本文介绍了Visual Studio将项目移到其他文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Visual Studio中将项目移动到其他文件夹?我在项目中已经习惯了这种结构.

How do I move a project to a different folder in Visual Studio? I am used to this structure in my projects.

-- app
---- Project.Something
---- Project.SomethingElse

我想将整个命名空间SomethingElse重命名为SomethingNew,这样做的最佳方法是什么(无需手动进入.sln文件)?

I want to rename the whole namespace SomethingElse to SomethingNew, what's the best way to do that (without manually going into .sln file)?

推荐答案

在解决方案资源管理器"窗口中右键单击该项目,然后选择删除",从该解决方案中删除该项目.将整个项目文件夹,包括子目录,移动到您想要的任何位置.将项目重新添加到您的解决方案中.

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.

命名空间名称完全不同,只需编辑源代码即可.

Namespace names is something completely different, just edit the source code.

这篇关于Visual Studio将项目移到其他文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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