在C#项目添加新过滤器功能 [英] Add New Filter functionality in C# projects

查看:675
本文介绍了在C#项目添加新过滤器功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C ++中的项目的 Visual Studio 2008中的有可能为添加 - >新建过滤器如果一个人想分开一些,这将是有益的从其他(即从头文件源的文件)的文件,并保持在semifolders各型而不物理地移动他们的硬盘上。我想要做的 C#的使用,可以说XML文件的项目是相同的,但这里的唯一选择是物理创建文件夹,这是我希望避免的。而且有我的问题:

In C++ projects in Visual Studio 2008 there is possibility to Add -> New filter which will be usefull if one wants to separate some files from others (ie. source files from header files) and keep each type in "semifolders" without moving them physically on the hard disk. I wanted to do the same in c# projects with, lets say xml files, but the only option here is to create folder physically, which I want to avoid. And there are my questions:


  1. 是否有可能(以及如何)中的 C#的项目创建过滤器

  2. 为什么的 C#的和的 C ++ 的项目的添加选项各不相同(第一,你可以添加文件夹(没有筛选)和第二滤波器(不是文件夹)?

  1. Is it possible (and how) to create filters in C# projects?
  2. Why C# and C++ project's Add options differ from each other (in first you can add folder(not filter) and in second filter(not folder)?

VS2008 的我使用的PS。我不知道这是否在改变的 VS2010

ps. I am using VS2008 and I don't know if this changed in VS2010.

推荐答案

据我知道这是不是可以在C#项目中使用创建过滤器。在C#中的项目与您的硬盘驱动器上使用的实际文件夹组织的。对不起。至于为什么C#和C ++有不同的选择,也就是仅仅因为他们是不同的语言。C#是一种更高级的语言,然后C ++等等(我只是猜测),他们去与文件夹,使之更加明显什么项目正在进行。

As far as I know it is not possible to create filters for use in C# projects. The projects in C# are organized with the use of actual folders on your hard drive. Sorry. As for why C# and C++ have different options, well that is simply because they are different languages. C# is a more high level language then C++ so (I am only guessing) they went with folders to make it more visible what is going on in the project.

这篇关于在C#项目添加新过滤器功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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