【发布时间】:2017-12-29 12:34:33
【问题描述】:
我的 Visual Studio (VS) 项目/解决方案按预期工作,但 VS 以某种非逻辑方式组织了我的项目的目录结构(源文件)。
当前目录结构
Solution Folder
Project 1 folder
Project 1 source files
Sub folder
Project 2 source files
.sln Solution file
Project 3 folder
Project 3 source files
我想我在将项目添加到 VS 中的解决方案时犯了一个错误,因为它现在是这样组织的。
我最想要的是这种更干净的结构:
Solution Folder
Project 1 folder
Project 1 source files
Project 2 folder
Project 2 source files
Project 3 folder
Project 3 sources files
.sln Solution file
当我尝试这个时 - 或者当我移动/尝试通过简单地移动它们来根据上述重新组织 VS 外部的文件/文件夹,然后尝试在 VS 中构建解决方案时,我收到以下错误(几乎)所有项目:
The item (name) does not exist in the project directory.
It may have been moved, renamed or deleted.
所以我的问题是:
如何在不破坏我的解决方案的情况下,在 VS 之外为我的解决方案重新组织我的文件夹/文件?
【问题讨论】:
-
使用文本编辑器打开 .sln 和单个项目文件。你可以看到事情(路径)错在哪里
标签: visual-studio directory-structure file-moving