Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Creating Project Items Programmatically

$
0
0

I have this code 

...

(project is type of VSProject2)

...

string itemPath = currentSolution.GetProjectItemTemplate("ScreenTemplate.zip", "csproj");  project.Project.ProjectItems.AddFromTemplate(itemPath,  name);            project.Project.Save();


for creating a project item for my solution, but it creates the item in the root of the project. Is there any way to create the item in a project's subfolder created using the  

project.ProjectItems.AddFolder("Screens");
? Thanks for help!

Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>