locked
You can only upload template VSIX files for the Visual Studio Express SKUs. RRS feed

  • Question

  • I am attempting to upload a VSIX file as a Template and I'm getting the above error even though my VSIX only contains a project template. I've included my vsixmanifest and the vstemplatefile.

    <?xml version="1.0" encoding="utf-8"?>
    <Vsix xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="1.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2010">
      <Identifier Id="AxiomVSTemplates..269b9557-44d1-4b21-bdfe-6580da19999e">
        <Name>Axiom Game Templates</Name>
        <Author>Axiom Project Team</Author>
        <Version>0.8.3373.12322</Version>
        <Description xml:space="preserve">Templates for creating games and applications using the Axiom 3D Rendering Engine.</Description>
        <Locale>1033</Locale>
        <MoreInfoUrl>http://axiom3d.net</MoreInfoUrl>
        <Icon>AxiomGame.ico</Icon>
        <PreviewImage>AxiomGame.ico</PreviewImage>
        <SupportedProducts>
          <VisualStudio Version="10.0">
            <Edition>Ultimate</Edition>
            <Edition>Premium</Edition>
            <Edition>Pro</Edition>
            <Edition>Express_All</Edition>
          </VisualStudio>
        </SupportedProducts>
        <SupportedFrameworkRuntimeEdition MinVersion="2.0" MaxVersion="4.0" />
      </Identifier>
      <References />
      <Content />
    </Vsix>

    <?xml version="1.0" encoding="utf-8"?>
    <VSTemplate Version="3.0.0" Type="Project" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
      <TemplateData>
        <TemplateID>306584BC-C375-4B4D-B75E-D6B094813E10</TemplateID>
        <Name>Axiom DirectX9 Game</Name>
        <Description>Axiom DirectX9 Game in C#</Description>
        <ProjectType>CSharp</ProjectType>
        <ProjectSubType>Axiom</ProjectSubType>
        <SortOrder>1000</SortOrder>
        <CreateNewFolder>true</CreateNewFolder>
        <DefaultName>AxiomDX9Game</DefaultName>
        <ProvideDefaultName>true</ProvideDefaultName>
        <LocationField>Enabled</LocationField>
        <EnableLocationBrowseButton>true</EnableLocationBrowseButton>
        <Icon>AxiomGame.ico</Icon>
      </TemplateData>
      <TemplateContent>
        <Project File="ProjectTemplate.csproj" ReplaceParameters="true">
          <ProjectItem ReplaceParameters="true" TargetFileName="Properties\AssemblyInfo.cs">AssemblyInfo.cs</ProjectItem>
          <ProjectItem ReplaceParameters="true" OpenInEditor="false">Program.cs</ProjectItem>
          <ProjectItem ReplaceParameters="true" OpenInEditor="true">Game.cs</ProjectItem>
          <ProjectItem ReplaceParameters="false" OpenInEditor="false">App.config</ProjectItem>
        </Project>
      </TemplateContent>
      <WizardExtension>
        <Assembly>NuGet.VisualStudio.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>
        <FullClassName>NuGet.VisualStudio.TemplateWizard</FullClassName>
      </WizardExtension>
      <WizardData>
        <packages repository="extension" repositoryId="AxiomVSTemplates..269b9557-44d1-4b21-bdfe-6580da19999e">
          <package id="Axiom" version="0.8.3373.12322" />
          <package id="Axiom.Platforms.Win32" version="0.8.3373.12322" />
          <package id="Axiom.RenderSystems.DirectX9" version="0.8.3373.12322" />
          <package id="Axiom.Plugins.FreeImageCodecs" version="0.8.3373.12322" />
        </packages>
      </WizardData>  
    </VSTemplate>


    Michael Cummings

    Tuesday, August 7, 2012 3:59 PM

Answers

  • Ok, found the error. Somehow my vsixmanifest lost it's <Content /> elements children. Once I changed it to:

      <Content>
        <ProjectTemplate>ProjectTemplates</ProjectTemplate>
      </Content>

    I can upload my VSIX Project Templates targeting all VS 2010 editions.


    Michael Cummings

    Tuesday, August 7, 2012 4:29 PM