多个项目的模板

时间:2016-01-25 16:19:26

标签: c# visual-studio

我正在尝试从多个项目创建一个模板,但在编译期间,我收到了错误消息: enter image description here

.vstemplate看起来像:

<?xml version="1.0" encoding="utf-8"?>

<VSTemplate Version="3.0.0" Type="Project" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005"
            xmlns:sdk="http://schemas.microsoft.com/developer/vstemplate-sdkextension/2010">
  <TemplateData>
    <Name>SapLogonPadStarterKit</Name>
    <Description>SapLogonPadStarterKit</Description>
    <ProjectType>CSharp</ProjectType>
    <Icon>sap_starter.png</Icon>
    <RequiredFrameworkVersion>2.0</RequiredFrameworkVersion>
    <SortOrder>1000</SortOrder>
    <TemplateID>a7aede48-56d0-4eb3-9058-dab864b8d60e</TemplateID>
    <CreateNewFolder>true</CreateNewFolder>
    <DefaultName>SapLogonPadStarterKit</DefaultName>
    <ProvideDefaultName>true</ProvideDefaultName>
  </TemplateData>
  <TemplateContent>
    <ProjectCollection>

      <ProjectTemplateLink ProjectName="Libraries">
        Libraries\Libraries.vstemplate
      </ProjectTemplateLink>

      <ProjectTemplateLink ProjectName="Libraries_Test">
        Libraries_Test\Libraries_Test.vstemplate
      </ProjectTemplateLink>

      <ProjectTemplateLink ProjectName="SapLogonPad">
        SapLogonPad\SapLogonPad.vstemplate
      </ProjectTemplateLink>

      <ProjectTemplateLink ProjectName="SapLogonPadTest">
        SapLogonPadTest\SapLogonPadTest.vstemplate
      </ProjectTemplateLink>

    </ProjectCollection>
  </TemplateContent>
</VSTemplate>

项目结构如下:
enter image description here
我做错了什么?

0 个答案:

没有答案