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

Customizing a project item template

$
0
0

Hello,

I'd like to set the custom tool and the build action of a project item through a project item template. I saw on a post titled "Is it possible to associate a custom tool with a file extension" posted on 4. July, but could not make it work (with both VS 2005 Beta 2 and RC1)
After exporting a template through VS2005 and modifying it according to the mentioned post, I get:

<VSTemplate Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Item">
  <TemplateData>
    <DefaultName>SqlBuilder.dbm</DefaultName>
    <Name>SqlBuilder</Name>
    <Description>Meta-data information for the SQL Builder Generator</Description>
    <ProjectType>CSharp</ProjectType>
    <SortOrder>10</SortOrder>
    <Icon>__TemplateIcon.ico</Icon>
  </TemplateData>
  <TemplateContent>
    <References />
    <ProjectItem SubType="" TargetFileName="$fileinputname$.dbm" ReplaceParameters="true">XMLFile1.dbm</ProjectItem>
    <CustomParameters>
       <CustomParameter Name="$CustomTool$" Value="SqlBuilderGenerator" />
    </CustomParameters>
  </TemplateContent>
</VSTemplate>

The CustomParameters section is supposed to set the custom tool, but it has no effect. What am I doing wrong and how can I set the build action ?
---
Jean-Marie Pirelli


Viewing all articles
Browse latest Browse all 4410

Trending Articles



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