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

Adding a new custom template with new SubType in VS Package 2010

$
0
0

Hi,

I have created a custom template, I have exported it as a zip file into \ItemTemplates folder of my Package project.

Than I have added into manifest:

<Content><VsPackage>|%CurrentProject%;PkgdefProjectOutputGroup|</VsPackage><ProjectTemplate>ProjectTemplates</ProjectTemplate><ItemTemplate>ItemTemplates</ItemTemplate></Content>


and into .csproj:

<PropertyGroup><GetVsixSourceItemsDependsOn>$(GetVsixSourceItemsDependsOn);GetVsixTemplateItems</GetVsixSourceItemsDependsOn></PropertyGroup><Target Name="GetVsixTemplateItems" DependsOnTargets="ZipProjects;ZipItems"><ItemGroup><VSIXSourceItem Include="@(IntermediateZipItem)"><VSIXSubPath>ItemTemplates\%(IntermediateZipItem.Language)\%(IntermediateZipItem.OutputSubPath)\%(IntermediateZipItem.Culture)</VSIXSubPath></VSIXSourceItem><VSIXSourceItem Include="@(IntermediateZipProject)"><VSIXSubPath>ProjectTemplates\%(IntermediateZipProject.Language)\%(IntermediateZipProject.OutputSubPath)\%(IntermediateZipProject.Culture)</VSIXSubPath></VSIXSourceItem></ItemGroup></Target>

But no new template is shown, what's wrong?

And another question how can I create a new SubType to put there all my item's templates?

Thank you!


Viewing all articles
Browse latest Browse all 4410

Trending Articles