VSTemplate with assembly action

How do you create a VSTemplate so that it automatically sets the build action to be โ€œcontentโ€ rather than the default โ€œnoโ€?

+6
c # visual-studio-2008 visual-studio
source share
3 answers

According to this message, instead of specifying SubType you should specify the ItemType attribute in the "Content".

 <ProjectItem ItemType="Content" ... > ... </ProjectItem> 

I tried and it works! (and yes, this is not very intuitive)

+3
source share

Have you tried to set the SubType attribute of the ProjectItem object for the content?

0
source share

it doesn't seem like you can do this from a .vstemplate file, however it looks like you can use a .pkgdef file for the user to accomplish what you want.

0
source share

All Articles