Visual Studio 将项目移动到其他文件夹

编程入门 行业动态 更新时间:2024-10-27 11:28:04
本文介绍了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 将项目移动到其他文件夹

本文发布于:2023-11-03 12:15:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1555110.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件夹   项目   Visual   Studio

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!