Hi
I am creating a Visual Studio add in in which I am successfully able to add the project using custom project template. I am successfully able to add Item from the custom Item template that I have created but when I explore the solution explorer I see that the Item template files are excluded from the project. They were copied to the Solution but were excluded.
I am trying to add it using C# code. The following code would help better in understanding.
string vsItemTemplatePath_ULS = newSolution.GetProjectItemTemplate("aasd**", "CSharp");newSolution.Projects.Item(1).ProjectItems.AddFromTemplate(ASDASDF**, "ABC");
Checked the msdn link-
http://connect.microsoft.com/VisualStudio/feedback/details/763863/projectitems-addfromtemplate-doesnt-work-when-project-is-a-solutionfolder
It says that the code does not work, while in my case it is adding the '.cs' file to the solution location as specified and as expected and it is opening the file initially in visual studio also but then we manually have to include the file to project by- showing hidden items in solution explorer and then right click and select "include the file in Project" manually.
I believe the issue mentioned in the link was there in VS 2010, however I am using VS 2012. I did not find any reference to the issue mentioned about VS 2012.
Any pointer in this regards would be highly appreciated.
Thanks and Regards
S Shankar