Item Template for VSTemplate file


I'm trying to create VS Item Template that will allow adding .vstemplate files to project.

This is how my vsTemplate.vstemplate file currently looks:

<?xml version="1.0" encoding="utf-8"?>
        <Name>VS Item Template</Name>
        <Description>VS Item Template Files</Description>
        <ProjectItem TargetFileName="Template\$fileinputname$.vstemplate" ReplaceParameters="true"></ProjectItem>
        <ProjectItem TargetFileName="Template\$fileinputname$.$fileinputextension$.data"></ProjectItem>
        <ProjectItem TargetFileName="Template\$fileinputname$.ico"></ProjectItem>

When I am trying to use it (inside vs experimental instance), I am getting this error:

The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

How I understand the problem, I need to specify custom build action for .vstemplate file inside .csproj file, something like this:

<VSTemplate Include"..."/>

But I don't know how to do that.

What I'am already tried:

  • set ItemType="VSTemplate" for vstemplate ProjectItem
  • use custom Wizard class
  • add /log option inside project command line argument window (it does not provide any additional information)
asked on Stack Overflow Aug 17, 2018 by Zamaleev Timur

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0