Visual studio 2015 Visual Studio 2015 ASP.NET核心RC2:丢失自定义项模板

Visual studio 2015 Visual Studio 2015 ASP.NET核心RC2:丢失自定义项模板,visual-studio-2015,visual-studio-templates,.net-core-rc2,Visual Studio 2015,Visual Studio Templates,.net Core Rc2,我使用Visual Studio 2015 update 2社区版 使用VisualStudioDotnetcore RC1工具,我在DNX部分下有了自定义项模板。我无法提供验证屏幕截图,因为我已经转到DotNetCore RC2工具预览1。使用最后一组工具时,我丢失了项目模板 我尝试将ProjectType和ProjectSubType从DNX更改为CSharp/Web,尝试将组件放在不同的位置,但没有成功 最后一个.vstemplate文件包含以下内容 <?xml version="

我使用Visual Studio 2015 update 2社区版

使用VisualStudioDotnetcore RC1工具,我在DNX部分下有了自定义项模板。我无法提供验证屏幕截图,因为我已经转到DotNetCore RC2工具预览1。使用最后一组工具时,我丢失了项目模板

我尝试将ProjectType和ProjectSubType从DNX更改为CSharp/Web,尝试将组件放在不同的位置,但没有成功

最后一个.vstemplate文件包含以下内容

<?xml version="1.0" encoding="utf-8"?>
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Item">
  <TemplateData>
    <DefaultName>ReactComponent</DefaultName>
    <Name>ReactComponent</Name>
    <Description>ReactComponent</Description>
    <TemplateID>Chandrush.ReactComponent</TemplateID>
    <ProjectType>CSharp</ProjectType>
    <ProjectSubType>Web</ProjectSubType>
    <Icon>__TemplateIcon.ico</Icon>
  </TemplateData>
  <TemplateContent>
    <References />
    <ProjectItem TargetFileName="$fileinputname$\$fileinputname$.tsx" ReplaceParameters="true">ReactComponent.tsx</ProjectItem>
    <ProjectItem TargetFileName="$fileinputname$\package.json" ReplaceParameters="true">package.json</ProjectItem>
    <ProjectItem TargetFileName="$fileinputname$\$fileinputname$.scss" ReplaceParameters="true">ComponentStyle.scss</ProjectItem>
  </TemplateContent>
</VSTemplate>

反应元件
反应元件
反应元件
钱德拉什反应元件
CSharp
网状物
__TemplateIcon.ico
ReactComponent.tsx
package.json
ComponentStyle.scss
有人知道使用.NetCore RC2 preview1工具将自定义项目模板返回VS2015u2的解决方案吗?

这对我来说是固定的

关于.vstemplate文件,必须更改以下属性:

<ProjectType>DNX</ProjectType>  
<TemplateGroupID>DotNetWeb</TemplateGroupID>
DNX
网络

问候,

是的!这有帮助!非常感谢。在最终的网络核心中,它似乎不起作用。“DNX”关键字现在已经过时了,我不知道用什么来代替NET Core的最后一部分?这对我来说很有用:
DNX SharedToNetAndDotNetWeb
谢谢,
SharedToNetAndDotNetWeb
适用于VS 2015 Upd 3+。NET Core 1.1适用于VS2017 ASP.NET Core项目
CSharpNetCore