Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CreateNewFolder #3

Open
Valter479 opened this issue Oct 25, 2016 · 7 comments
Open

CreateNewFolder #3

Valter479 opened this issue Oct 25, 2016 · 7 comments

Comments

@Valter479
Copy link

Valter479 commented Oct 25, 2016

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
Copy link
Owner

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
Copy link
Author

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

@sayedihashimi
Copy link
Owner

Can you share your source files?

@Valter479
Copy link
Author

which source files would you want to see?

@sayedihashimi
Copy link
Owner

The template and the vsix project

@sayedihashimi
Copy link
Owner

@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
Copy link
Author

Yes i am using the latest version 0.0.23-beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants