Visual Studio解决方案-创建“特殊"商品的任何方式文件夹? [英] Visual Studio Solution -- Any way to create a "special" folder?

查看:93
本文介绍了Visual Studio解决方案-创建“特殊"商品的任何方式文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上,我希望我的一个文件夹以一种特殊文件夹"的形式出现在其他文件夹的上方,这类似于属性"如何具有自己的特殊位置,即使它是一个文件夹,也与App_Data等相同.

Basically, I want one of my folders to appear above the other folders as a type of "special folder", similar to how Properties has it's own special place even though it's a folder, same with App_Data, etc.

这可能吗?

推荐答案

默认情况下,Visual Studio不支持添加特殊项目文件夹. 属性"文件夹经过硬编码,以表现出它的行为方式.

By default, Visual Studio doesn't support adding special project folders. The Properties folder is hard-coded to behave the way that it does.

但是,使用代码,一切皆有可能.您可以构建扩展来执行此操作,但这并不简单.您可能需要弄乱IVsHierarchy甚至实现项目子类型.

However, anything is possible with code. You could build an extension to do this, but it wouldn't be simple. You'd probably need to mess around with the IVsHierarchy or even implement a project subtype.

这篇关于Visual Studio解决方案-创建“特殊"商品的任何方式文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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