Is there a way to include folder into VC++ project programmatically via VCProject or EnvDTE interface?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
I have done this only for C# and VB.NET projects, but it should be the same:
Take a look at the sample macros -
View -> Other Windows -> Macro Explorer
. There's one inSamples/AddDirAsSlnFolder
which shows you how to create nodes in a project and add files. It's in VisualBasic, but it's pretty easy to translate into C# once you see which methods inEnvDTE
are used, egusing
EnvDTE.ProjectItems