2013-05-26 1 views

답변

0

을 만들 수 있습니다. 다른 프로젝트 유형의 경우 실제 폴더를 사용해야 할 수도 있습니다. 이 코드는 프로젝트에 "First Level Folder"폴더가 있다고 가정합니다.

Project project = null; // you should get the project from the solution or as active project or somehow else 
ProjectItem folderItem = project.ProjectItems.Item("First Level Folder"); 
folderItem.ProjectItems.AddFolder("Second Level Folder", Constants.vsProjectItemKindVirtualFolder); 

코드가 제대로 컴파일 및 실행되지 않을 수 있습니다. 단지 코드 단편 일뿐입니다.