0

I have a multi-project VSTemplate using the ProjectCollection feature and want to control the folders created for each of the projects

  <TemplateData>
    <Name>SecuredBlazorWebAssembly.Client</Name>
    <Description>Secured Blazor Web Assembly Client Template</Description>
    <ProjectType>CSharp</ProjectType>
    <ProjectSubType>Web</ProjectSubType>
    <SortOrder>1000</SortOrder>
    <CreateNewFolder>true</CreateNewFolder>
    <DefaultName>SecuredBlazorWebAssembly.Client</DefaultName>
    <ProvideDefaultName>true</ProvideDefaultName>
    <LocationField>Enabled</LocationField>
    <EnableLocationBrowseButton>true</EnableLocationBrowseButton>
    <CreateInPlace>true</CreateInPlace>
    <Icon>__TemplateIcon.ico</Icon>
  </TemplateData>
  <TemplateContent>
    <Project TargetFileName="$rootnamespace$.Client.csproj" File="SecuredBlazorWebAssembly.Client.csproj" ReplaceParameters="true">
      <Folder Name="Properties" TargetFolderName="Properties">
        <ProjectItem ReplaceParameters="true" TargetFileName="launchSettings.json">launchSettings.json</ProjectItem>
      </Folder>
etc and so on

What I want is how the default project creation wizard works ... enter image description here

But what I get is ... enter image description here

Is it possible to control the name of the project folder inside the VSTemplate Project element?

KevinRF
  • 602
  • 3
  • 13

0 Answers0