Visual Studio - 使用“从现有源向导创建项目”时,新建过滤器而不是新建文件夹 [英] Visual Studio - New Filter instead of New Folder when using Create Project From Existing Source Wizard

查看:325
本文介绍了Visual Studio - 使用“从现有源向导创建项目”时,新建过滤器而不是新建文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio 2008的从现有代码向导创建项目向导,但显然,以这种方式创建的项目不允许创建虚拟解决方案文件夹,而只允许创建实际的系统文件夹。我想要标题文件,资源文件和源文件的标准项目设置,但我似乎无法创建所需的虚拟文件。是否有任何方法来更改项目,以便允许创建虚拟文件夹?

I used the Create Project From Existing Code Wizard for Visual Studio 2008, but apparently projects created this way do not allow you to create virtual solution folders, and instead only allow you to create actual system folders. I would like to have the standard project setup of Header Files, Resource Files, and Sources Files, but I seem to be unable to create the virtual files required. Is there any way to change the project so that it allows virtual folders to be created?

推荐答案

至少对于创建的C ++项目这种方式(不知道其他语言),解决方案资源管理器中的显示所有文件按钮/选项已启用,这会给出您看到的行为。

At least for a C++ project created this way (not sure about other languages), the "Show All Files" button/option in the Solution Explorer is enabled which gives the behavior you're seeing.

该选项通过点击图标,你会得到你正在寻找的行为。

Disable that option by clicking the icon and you'll get the behavior you're looking for.

这篇关于Visual Studio - 使用“从现有源向导创建项目”时,新建过滤器而不是新建文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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