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

Project template doesn't appear in Add New Project Dialog #374

Open
matewoj opened this issue Apr 22, 2016 · 10 comments
Open

Project template doesn't appear in Add New Project Dialog #374

matewoj opened this issue Apr 22, 2016 · 10 comments

Comments

@matewoj
Copy link

matewoj commented Apr 22, 2016

Hi,

I've done everything as you described in tutorial "How to create a project template"

Unfortunately when I finished tutorial project didn't appear in Add New Project Dialog.

Could you send me Project Template example for Visual Studio 2013

Visual Studio 2013
SideWaffle 1.20.339

_preprocess.xml:

<?xml version="1.0" encoding="utf-8" ?>
<Preprocess>
  <TemplateInfo Path="CSharp\Web"/>
  <Replacements Include="*.*" Exclude="*.vstemplate;*.fsproj;*.vbproj;*.jpg;*.png;*.ico;_preprocess.xml;_project.vstemplate.xml">
    <add key="MvcTemplate" value="$safeprojectname$"/>
  </Replacements>
</Preprocess>

_project.vstemplate.xml:

<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">
  <TemplateData>
    <Name>Your name here</Name>
    <Description>Project description here</Description>
    <DefaultName>MvcTemplate</DefaultName>
    <ProjectType>CSharp</ProjectType>
    <ProjectSubType>
    </ProjectSubType>
    <SortOrder>1000</SortOrder>
    <CreateNewFolder>true</CreateNewFolder>
    <ProvideDefaultName>true</ProvideDefaultName>
    <LocationField>Enabled</LocationField>
    <EnableLocationBrowseButton>true</EnableLocationBrowseButton>
    <Icon>sw-file-icon.png</Icon>
    <TemplateID>87960f67-3c0a-46ea-83f9-0ec41334decd</TemplateID>
    <!-- Indicates how many parent folders this item template should appear in -->
    <NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
  </TemplateData>
  <TemplateContent>
    <Project TargetFileName="MvcTemplate.csproj" File="MvcTemplate.csproj" ReplaceParameters="true">
    </Project>
    <CustomParameters>
      <CustomParameter Name="SideWaffle Project Template Files" Value="Your name here" />
      <CustomParameter Name="8e0a6fff-7069-4384-9bb3-5e53d6cbb0b3" Value="f292d270-4e1c-416b-9434-1e3a6bb9b7a6" />
      <CustomParameter Name="Item" Value="Item" />
    </CustomParameters>
  </TemplateContent>
  <WizardExtension>
    <Assembly>LigerShark.Templates, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</Assembly>
    <FullClassName>LigerShark.Templates.GoogleAnalyticsWizard</FullClassName>
  </WizardExtension>
</VSTemplate>

Kind Regards

@PallasDoesCode
Copy link
Member

Good morning @frenc and thank you for filing this issue! In order to help us understand your situation can you answer a the question below for me?

  1. After following the steps outline in the wiki article did you install the VSIX file that was generated?

@matewoj
Copy link
Author

matewoj commented Apr 22, 2016

Yes, I installed VSIX file but it didn't help anyway

@PallasDoesCode
Copy link
Member

In your _project.vstemplate.xml file under the CreateNewFolder element try adding the following line:

<CreateInPlace>true</CreateInPlace>

You'll then need to rebuild your template. I'd also like to note that if you will use Ctrl + F5 to do a Run without Debugging on the project then Visual Studio will open another instance of it but in Experimental Mode. This mode automatically installs your VSIX file and will allow you to test any changes you have made without actually uninstalling and reinstalling your VSIX file multiple times.

@matewoj
Copy link
Author

matewoj commented Apr 24, 2016

Thanks for your advice but unfortunately it doesn't work

@PallasDoesCode
Copy link
Member

@sayedihashimi any ideas what might be missing?

@matewoj
Copy link
Author

matewoj commented Apr 25, 2016

Could you send me some sample project for visual studio 2013 which I'll be able to check in my environment ?

@sayedihashimi
Copy link
Member

@frenc on disk is the project filename MvcTemplate.csproj? If that is right then remove the following

  <WizardExtension>
    <Assembly>LigerShark.Templates, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</Assembly>
    <FullClassName>LigerShark.Templates.GoogleAnalyticsWizard</FullClassName>
  </WizardExtension>

and try again.

@PallasDoesCode
Copy link
Member

@frenc did that fix your issue?

@matewoj
Copy link
Author

matewoj commented May 4, 2016

thanks for help but it didn't help me. I send project created in Visual Studio 2013.
Could anyone say what is wrong.

https://github.com/frenc/sidewaffel

@PallasDoesCode
Copy link
Member

@frenc I'll see if I can't find some time this afternoon to look it over. Thanks for sharing the link.

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

3 participants