无法将现有文件夹添加到项目中 [英] Unable to add existing folder to project

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

问题描述

您好,

我有一个包含2个项目的解决方案:

I have a solution with 2 projects:

项目AcsGE_Window有文件夹AcsGE(这是一个git子模块)。该文件夹以某种方式出现在项目中(它位于项目根目录中)

The project AcsGE_Window has the folder AcsGE (this is a git submodule). The folder somehow appeared on the project (it's in the project root dir)

在项目中,AcsGE_Rendere创建了相同的子模块(AcsGE)但是对于某些子模块我选择该文件夹中的所有文件的原因我没有得到我项目中的文件夹(这是我之前看到的行为)

In the project AcsGE_Rendere I have created the same submodule (AcsGE) but for some reason when I select all the files from that folder I don't get the folder in my project (which is behavior I have seen before)

这是文件夹选择

这就是我得到的:

我只是希望它像在AcsGE_Window项目中一样,是一个文件夹。

I just want it like it is in the AcsGE_Window project, a folder.

任何人都可以告诉我我做错了什么吗?

Can anyone please tell me what I am doing wrong?

Microsoft Visual Studio社区2017
$
版本15.8.1

VisualStudio.15。发布/ 15.8.1 + 28010.2003

Microsoft .NET Framework

版本4.7.03056

已安装版本:Community

Visual C ++ 2017   00369-60000-00001-AA236

Microsoft Visual C ++ 2017
$

Microsoft Visual Studio Community 2017
Version 15.8.1
VisualStudio.15.Release/15.8.1+28010.2003
Microsoft .NET Framework
Version 4.7.03056
Installed Version: Community
Visual C++ 2017   00369-60000-00001-AA236
Microsoft Visual C++ 2017

推荐答案

两件事。

首先,你确定它是一个目录而不是过滤器吗?默认视图不代表硬盘上的物理布局。

First, are you sure that it is a directory and not a filter? The default view doesn't represent the physical layout on the hard disk.

其次,您是否显示为该项目启用的所有文件?

Second, do you have show all files enabled for that project?

注意,您必须拥有自己想要的项目将此应用于或应用其中一个子项。如果您选择了解决方案名称,则不会显示。

Note, you must have the project that you want to apply this to, or one of the sub items, to apply it. It doesn't appear if you have the solution name selected.


这篇关于无法将现有文件夹添加到项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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