どの IDHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\11.0\Projects\
を使用しても、どれも機能しません。に設定ShowByDefault
するとfalse
、「新しいアイテムの追加」ウィンドウに何も表示されません。私の例では を使用してSharePointItemTemplateGroupID
いますが、Web
機能しません。何が間違っているのかわかりません。
私の *.vstemplate:
<?xml version="1.0" encoding="utf-8"?>
<VSTemplate Version="3.0.0" Type="Item" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" xmlns:sdk="http://schemas.microsoft.com/developer/vstemplate-sdkextension/2010">
<TemplateData>
<Name>My User Control</Name>
<Description>My User Control with My-specific content.</Description>
<Icon>MyUserControl.ico</Icon>
<TemplateID>b83fe377-e03a-40a8-9366-a04988fae2a7</TemplateID>
<ProjectType>CSharp</ProjectType>
<SortOrder>1</SortOrder>
<RequiredFrameworkVersion>2.0</RequiredFrameworkVersion>
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
<DefaultName>MyUserControl.ascx</DefaultName>
<TemplateGroupID>SharePointItemTemplateGroupID</TemplateGroupID>
<ProjectSubType>SharePointItemTemplateGroupID</ProjectSubType>
<ShowByDefault>true</ShowByDefault>
</TemplateData>
<TemplateContent>
<References>
<Reference>
<Assembly>Microsoft.SharePoint</Assembly>
</Reference>
<Reference>
<Assembly>System</Assembly>
</Reference>
<Reference>
<Assembly>System.Web</Assembly>
</Reference>
</References>
<ProjectItem ReplaceParameters="true" TargetFileName="$fileinputname$.$fileinputextension$">MyUserControl.ascx</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="$fileinputname$.$fileinputextension$.cs">MyUserControl.ascx.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="$fileinputname$.$fileinputextension$.designer.cs">MyUserControl.ascx.designer.cs</ProjectItem>
<CustomParameters>
<CustomParameter Name="MappedFolderType" Value="UserControl" />
<CustomParameter Name="$UC$" Value="UserControl" />
<CustomParameter Name="$baseclass$" Value="UserControl"/>
</CustomParameters>
</TemplateContent>
<WizardExtension>
<Assembly>Microsoft.VisualStudio.SharePoint.ProjectExtensions.Wizards, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>
<FullClassName>Microsoft.VisualStudio.SharePoint.ProjectExtensions.Wizards.GenericMappedFolderWizard</FullClassName>
</WizardExtension>
</VSTemplate>