0

I have added a class file (LocalInitializer.cs) as "Add as link file" in my Project under a folder call say "Initializer". What will I do in the ProjectTemplate1.vstemplate file to add it. The current structure is

<TemplateContent>
    <Project File="ProjectTemplate.csproj" ReplaceParameters="true">      

      <ProjectItem ReplaceParameters="true" OpenInEditor="true">Initializer\GlobalInitializer.cs</ProjectItem>

    </Project>   
  </TemplateContent>

But it gives error

Could not find file 'D:\ProjectTemplate1\ProjectTemplate1\Initializer\GlobalInitializer.cs'

I even tried by adding

<ItemGroup>     
    <Compile Include="Initializer\GlobalInitializer.cs" />      
</ItemGroup>

into ProjectTemplate.csproj but same error.

any idea of how to solve this?

Thanks

1 Answers1

0

I suspect you will need to look at as named "Custom Wizards" approach. Read these threads on VSX MSDN Forum (Visual Studio Extensibility) as a starting point:

Hope that helps

Dmitry Pavlov
  • 30,789
  • 8
  • 97
  • 121