sayedihashimi / pecan-waffle-samples

5 stars 0 forks source link

CreateNewFolder #3

Open Valter479 opened 7 years ago

Valter479 commented 7 years ago

I set the CreateNewFolder to false in the _project.vstemplate but when created the template after install it still create a new folder.

MyWebApp ---|---->MyWebApp ------------|----->project1 ------------|----->project2

<?xml version="1.0" encoding="utf-8"?>
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">
  <TemplateData>
    <Name>Inspinia Theme Solution</Name>
    <Description>This contains skeleton project using Inspinia Theme</Description>
    <DefaultName>MyWebApp</DefaultName>
    <ProjectType>CSharp</ProjectType>
    <ProjectSubType></ProjectSubType>
    <SortOrder>1000</SortOrder>
    <CreateNewFolder>false</CreateNewFolder>
    <ProvideDefaultName>true</ProvideDefaultName>
    <LocationField>Enabled</LocationField>
    <EnableLocationBrowseButton>true</EnableLocationBrowseButton>
    <Icon>sw-file-icon.png</Icon>
    <TemplateID>E73A74AD-3036-49BD-A509-0609316B9A38</TemplateID>
    <!-- Indicates how many parent folders this item template should appear in -->
    <NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
  </TemplateData>
  <WizardExtension>
    <Assembly>PecanWaffle, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</Assembly>
    <FullClassName>PecanWaffle.PecanWizard</FullClassName>
  </WizardExtension>
  <TemplateContent>
    <Project TargetFileName="$safeprojectname$.csproj" File="VsTemplateProj.csproj" ReplaceParameters="true" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005"></Project>
    <CustomParameters xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
      <CustomParameter Name="TemplateName" Value="InspiniaThemeTemplate" />
      <CustomParameter Name="ExtensionId" Value="InspiniaThemeTemplate.Microsoft.6779b493-d62e-4a84-a746-34070a5452ff"/>
      <CustomParameter Name="Item" Value="Item" />
    </CustomParameters>
  </TemplateContent>
</VSTemplate>
sayedihashimi commented 7 years ago

In your .vstemplate file I see that you have <CreateNewFolder>true</CreateNewFolder>, can you set that to False to see if it makes a difference?

Valter479 commented 7 years ago

Yes originally i had false... i copy the wrong file. It doesn't work with false on CreateNewFolder

sayedihashimi commented 7 years ago

Can you share your source files?

Valter479 commented 7 years ago

which source files would you want to see?

sayedihashimi commented 7 years ago

The template and the vsix project

sayedihashimi commented 7 years ago

@vp123456 one thing to check is that you're using the latest version 0.0.23-beta of the pecan-waffle NuGet package. I know that I made some changes in this area in the latest version of the packages.

Valter479 commented 7 years ago

Yes i am using the latest version 0.0.23-beta