如何将现有子文件夹(带/不带子文件/文件夹)添加到解决方案?

发布于 2024-09-24 07:49:35 字数 174 浏览 0 评论 0原文

该文件夹位于我的解决方案物理位置中,但我找不到通过右键单击将现有文件夹添加到项目的命令。我只能看到“添加现有文件”。尝试创建该文件夹被拒绝,因为它已经存在!

我尝试将该文件夹从硬盘上的解决方案文件夹中移出,然后再次添加。一切都很顺利,但如果该文件夹是一个复杂的文件夹(里面有很多文件和文件夹),结果会很糟糕。我放弃了!

The folder resides within my solution physical location but I can not find a command to add existing folder to the project from right-clicking. All I can see is "Add existing files". Trying to create the folder is denied since it already exists!

I tried to move the folder out of the solution folder on the hard disk, and add it again. Thing goes fine but it turns out to be awlful if the folder is a complex folder (with lots of files and folders inside). I gave up!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浪推晚风 2024-10-01 07:49:35

您需要“包含在项目中”:

  1. 单击“解决方案资源管理器”顶部的小按钮“显示所有文件”,以显示解决方案的所有文件/文件夹。不在您的解决方案中的那些是幻影/白色的。
  2. 右键单击“现有文件夹”并选择“包含在项目中”
  3. 完成

希望有帮助!

You need "Include in project":

  1. Click "Show all files", the small button at the head of your Solution Explorer, to show all files/folders of your solution. The ones not in your solution is in phantom/white color.
  2. Right click your "existing folder" and select "Include in project"
  3. Done

Hope that helps!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文