我正在尝试以编程方式创建项目项.我有这个代码
string itemPath = currentSolution.GetProjectItemTemplate("ScreenTemplate.zip", "csproj");
currentSolution.Projects.Item(1).ProjectItems.AddFromTemplate(itemPath, name);
currentSolution.Projects.Item(1).Save();
Run Code Online (Sandbox Code Playgroud)
但我想在项目内的指定目录中创建项目(这将在项目的根目录中创建项目).可能吗?感谢帮助!