How call a wizard to add new Item Template










3















I have a project template that is generated through a wizard.
Now i want to add a new item template through the same wizard.
How can i invoke the wizard at the moment that i add the new item template.



Example:



Add to Project Template[Add to Project Template]



Wizard/Form[Wizard/Form]



Add the new Item Template[Add the new Item Template]



Show the wizard Template[Show the wizard Template]



show the new Item/class[show the new Item/class]



Item Template Code:



<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Item">
<TemplateData>
<DefaultName>class1.cs</DefaultName>
<Name>Myproject class1</Name>
<Description>Myproject Class</Description>
<ProjectType>CSharp</ProjectType>
<SortOrder>10</SortOrder>
<Icon>Myprojectclass1.png</Icon>
</TemplateData>
<TemplateContent>
<References>
<Reference>
<Assembly>System</Assembly>
</Reference>
<Reference>
<Assembly>System.Linq</Assembly>
</Reference>
<Reference>
<Assembly>System.Threading.Tasks</Assembly>
</Reference>
</References>
<ProjectItem SubType="Code" TargetFileName="$fileinputname$.cs" ReplaceParameters="true">class1.cs</ProjectItem>
<CustomParameters>
<CustomParameter Name="$username$" Value="$safeitemrootname$"/>
<CustomParameter Name="$rootnamespace$" Value="$safeitemrootname$"/>
<CustomParameter Name="$registeredorganization$" Value="$safeitemrootname$"/>
</CustomParameters>
</TemplateContent>
<WizardExtension>
<Assembly>MyProjectWizard, Version=1.0.0.0, Culture=Neutral, PublicKeyToken=f7a1fcb8d457e160</Assembly>
<FullClassName>MyProjectWizard.WizardImplementation</FullClassName>
</WizardExtension>
</VSTemplate>









share|improve this question




























    3















    I have a project template that is generated through a wizard.
    Now i want to add a new item template through the same wizard.
    How can i invoke the wizard at the moment that i add the new item template.



    Example:



    Add to Project Template[Add to Project Template]



    Wizard/Form[Wizard/Form]



    Add the new Item Template[Add the new Item Template]



    Show the wizard Template[Show the wizard Template]



    show the new Item/class[show the new Item/class]



    Item Template Code:



    <VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Item">
    <TemplateData>
    <DefaultName>class1.cs</DefaultName>
    <Name>Myproject class1</Name>
    <Description>Myproject Class</Description>
    <ProjectType>CSharp</ProjectType>
    <SortOrder>10</SortOrder>
    <Icon>Myprojectclass1.png</Icon>
    </TemplateData>
    <TemplateContent>
    <References>
    <Reference>
    <Assembly>System</Assembly>
    </Reference>
    <Reference>
    <Assembly>System.Linq</Assembly>
    </Reference>
    <Reference>
    <Assembly>System.Threading.Tasks</Assembly>
    </Reference>
    </References>
    <ProjectItem SubType="Code" TargetFileName="$fileinputname$.cs" ReplaceParameters="true">class1.cs</ProjectItem>
    <CustomParameters>
    <CustomParameter Name="$username$" Value="$safeitemrootname$"/>
    <CustomParameter Name="$rootnamespace$" Value="$safeitemrootname$"/>
    <CustomParameter Name="$registeredorganization$" Value="$safeitemrootname$"/>
    </CustomParameters>
    </TemplateContent>
    <WizardExtension>
    <Assembly>MyProjectWizard, Version=1.0.0.0, Culture=Neutral, PublicKeyToken=f7a1fcb8d457e160</Assembly>
    <FullClassName>MyProjectWizard.WizardImplementation</FullClassName>
    </WizardExtension>
    </VSTemplate>









    share|improve this question


























      3












      3








      3


      1






      I have a project template that is generated through a wizard.
      Now i want to add a new item template through the same wizard.
      How can i invoke the wizard at the moment that i add the new item template.



      Example:



      Add to Project Template[Add to Project Template]



      Wizard/Form[Wizard/Form]



      Add the new Item Template[Add the new Item Template]



      Show the wizard Template[Show the wizard Template]



      show the new Item/class[show the new Item/class]



      Item Template Code:



      <VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Item">
      <TemplateData>
      <DefaultName>class1.cs</DefaultName>
      <Name>Myproject class1</Name>
      <Description>Myproject Class</Description>
      <ProjectType>CSharp</ProjectType>
      <SortOrder>10</SortOrder>
      <Icon>Myprojectclass1.png</Icon>
      </TemplateData>
      <TemplateContent>
      <References>
      <Reference>
      <Assembly>System</Assembly>
      </Reference>
      <Reference>
      <Assembly>System.Linq</Assembly>
      </Reference>
      <Reference>
      <Assembly>System.Threading.Tasks</Assembly>
      </Reference>
      </References>
      <ProjectItem SubType="Code" TargetFileName="$fileinputname$.cs" ReplaceParameters="true">class1.cs</ProjectItem>
      <CustomParameters>
      <CustomParameter Name="$username$" Value="$safeitemrootname$"/>
      <CustomParameter Name="$rootnamespace$" Value="$safeitemrootname$"/>
      <CustomParameter Name="$registeredorganization$" Value="$safeitemrootname$"/>
      </CustomParameters>
      </TemplateContent>
      <WizardExtension>
      <Assembly>MyProjectWizard, Version=1.0.0.0, Culture=Neutral, PublicKeyToken=f7a1fcb8d457e160</Assembly>
      <FullClassName>MyProjectWizard.WizardImplementation</FullClassName>
      </WizardExtension>
      </VSTemplate>









      share|improve this question
















      I have a project template that is generated through a wizard.
      Now i want to add a new item template through the same wizard.
      How can i invoke the wizard at the moment that i add the new item template.



      Example:



      Add to Project Template[Add to Project Template]



      Wizard/Form[Wizard/Form]



      Add the new Item Template[Add the new Item Template]



      Show the wizard Template[Show the wizard Template]



      show the new Item/class[show the new Item/class]



      Item Template Code:



      <VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Item">
      <TemplateData>
      <DefaultName>class1.cs</DefaultName>
      <Name>Myproject class1</Name>
      <Description>Myproject Class</Description>
      <ProjectType>CSharp</ProjectType>
      <SortOrder>10</SortOrder>
      <Icon>Myprojectclass1.png</Icon>
      </TemplateData>
      <TemplateContent>
      <References>
      <Reference>
      <Assembly>System</Assembly>
      </Reference>
      <Reference>
      <Assembly>System.Linq</Assembly>
      </Reference>
      <Reference>
      <Assembly>System.Threading.Tasks</Assembly>
      </Reference>
      </References>
      <ProjectItem SubType="Code" TargetFileName="$fileinputname$.cs" ReplaceParameters="true">class1.cs</ProjectItem>
      <CustomParameters>
      <CustomParameter Name="$username$" Value="$safeitemrootname$"/>
      <CustomParameter Name="$rootnamespace$" Value="$safeitemrootname$"/>
      <CustomParameter Name="$registeredorganization$" Value="$safeitemrootname$"/>
      </CustomParameters>
      </TemplateContent>
      <WizardExtension>
      <Assembly>MyProjectWizard, Version=1.0.0.0, Culture=Neutral, PublicKeyToken=f7a1fcb8d457e160</Assembly>
      <FullClassName>MyProjectWizard.WizardImplementation</FullClassName>
      </WizardExtension>
      </VSTemplate>






      c# visual-studio wizard vsix itemtemplate






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 13 '18 at 16:05







      Jorge Toscano

















      asked Nov 13 '18 at 15:09









      Jorge ToscanoJorge Toscano

      468




      468






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I have already found the solution, there is no other way to call the template item without being key.snk.



          Because when I call an itemtemplate I have to implement my item I chose the project created and the only way to do that is by key.snk.



          If they have a different form please respond to this question, I want to know if there are more ways to call the Item template.






          share|improve this answer
























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53283968%2fhow-call-a-wizard-to-add-new-item-template%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I have already found the solution, there is no other way to call the template item without being key.snk.



            Because when I call an itemtemplate I have to implement my item I chose the project created and the only way to do that is by key.snk.



            If they have a different form please respond to this question, I want to know if there are more ways to call the Item template.






            share|improve this answer





























              0














              I have already found the solution, there is no other way to call the template item without being key.snk.



              Because when I call an itemtemplate I have to implement my item I chose the project created and the only way to do that is by key.snk.



              If they have a different form please respond to this question, I want to know if there are more ways to call the Item template.






              share|improve this answer



























                0












                0








                0







                I have already found the solution, there is no other way to call the template item without being key.snk.



                Because when I call an itemtemplate I have to implement my item I chose the project created and the only way to do that is by key.snk.



                If they have a different form please respond to this question, I want to know if there are more ways to call the Item template.






                share|improve this answer















                I have already found the solution, there is no other way to call the template item without being key.snk.



                Because when I call an itemtemplate I have to implement my item I chose the project created and the only way to do that is by key.snk.



                If they have a different form please respond to this question, I want to know if there are more ways to call the Item template.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Dec 5 '18 at 9:32

























                answered Dec 4 '18 at 9:43









                Jorge ToscanoJorge Toscano

                468




                468



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53283968%2fhow-call-a-wizard-to-add-new-item-template%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    這個網誌中的熱門文章

                    What does pagestruct do in Eviews?

                    Dutch intervention in Lombok and Karangasem

                    Channel Islands