locked
XSD DataSet ItemTemplate for custom generator (custom MSDataSetGenerator) RRS feed

  • Question

  • Hello,

    I'm trying to write item template for custom DataSet (XSD) and only thing I need to change (or atleast main thing) is CustomTool property. But for some reason this one sticks on "MSDataSetGenerator"...

    Custom tool itself works well (registered with mine VSIP package). I just need to change that property in every new schema, what is why I need template...

    Thanks in advance for any info.

    --

    Here is mine .vstemplate:

    <VSTemplate Version="2.0.0" Type="Item" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">

    <TemplateData>

    <Name>GINIS DataSet</Name>

    <Description>GINIS DataSet</Description>

    <Icon Package="{FAE04EC1-301F-11d3-BF4B-00C04F79EFBC}" ID="4522"/>

    <ProjectType>CSharp</ProjectType>

    <SortOrder>120</SortOrder>

    <DefaultName>DataSet.xsd</DefaultName>

    </TemplateData>

    <TemplateContent>

    <References>

    <Reference>

    <Assembly>System</Assembly>

    </Reference>

    <Reference>

    <Assembly>System.Data</Assembly>

    </Reference>

    <Reference>

    <Assembly>System.Xml</Assembly>

    </Reference>

    <Reference>

    <Assembly>Gordic.Data</Assembly>

    </Reference>

    </References>

    <ProjectItem ReplaceParameters="true" OpenInEditor="false">DataSet.xsd</ProjectItem>

    <CustomParameters>

    <CustomParameter Name="$itemproperties$" Value="CustomTool" />

    <CustomParameter Name="$CustomTool$" Value="GDataSetGenerator456" />

    </CustomParameters>

    </TemplateContent>

    </VSTemplate>

     

    Friday, May 19, 2006 4:36 PM

Answers

  • Hi Martin,

    This looks like a design issue in the DataSet designer.

    I will raid bug to fix it.

    Please free to report the bug in Microsoft Connect web site as well.

    Include this thread so it will get to the right person.

    John Chen

    Visual Basic Pro Data Team

     

     

    Tuesday, July 11, 2006 1:05 AM
  • Just a note - VS2008 already allows to override CustomTool property.
    Martin [MCP]
    • Marked as answer by maliger Thursday, September 4, 2008 10:22 AM
    Thursday, September 4, 2008 10:22 AM

All replies

  • Hello,

    I'm trying to write item template for custom DataSet (XSD) and I need to change  CustomTool property. But for some reason this one sticks on "MSDataSetGenerator"...

    Custom tool itself works well.


    I tried several other things, as was disscussed in other threads / msdn docs. But no success so far.

    I tried even implement my own IWizard and set

    projectItem.Properties.Item("CustomTool").Value = "GDataSetGenerator456";

    there, but no sucess either. XSD files seems to stick with "MSDataSetGenerator" whatever I try.

    How could one override this? Other properties works well (e.g. "CustomToolNamespace")

     

    Thanks in advance,

    Martin

    Friday, June 23, 2006 7:48 AM
  • Hi Martin,

    This looks like a design issue in the DataSet designer.

    I will raid bug to fix it.

    Please free to report the bug in Microsoft Connect web site as well.

    Include this thread so it will get to the right person.

    John Chen

    Visual Basic Pro Data Team

     

     

    Tuesday, July 11, 2006 1:05 AM
  • Bug is reported on Connect.

    http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=168589

    feel free to validate/comment on this :-)

    Tuesday, August 8, 2006 11:10 AM
  • Just a note - VS2008 already allows to override CustomTool property.
    Martin [MCP]
    • Marked as answer by maliger Thursday, September 4, 2008 10:22 AM
    Thursday, September 4, 2008 10:22 AM