Visual Studio 2015 更新 1 - 使用 Cordova 工具创建项目时找不到指定的模板 [英] Visual Studio 2015 Update 1 - The template specified cannot be found when creating project with Cordova tools

查看:32
本文介绍了Visual Studio 2015 更新 1 - 使用 Cordova 工具创建项目时找不到指定的模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在安装了 Apache Cordova 工具组件的 Visual Studio 2015 社区之后,我对 Visual Studio 2015 Update 1 Enterprise(MSDN 发布日期 1/13/2016)进行了全新安装.

创建新项目时...

  1. 我不再看到带有 JavaScript 模板的节点 - 尽管它在 Common7\IDE\ProjectTemplates 结构中
  2. 我使用新的 TypeScript TACO 模板收到找不到指定的模板"

解决方案

经过一些挖掘和反复试验/错误循环后,我通过这些步骤解决了问题

  1. MSDN 论坛入口

<块引用>

我卸载了visual studio 2015,用visual studio 14删除regedit键,删除所有c:\xx\AppData\Local\Temp文件和安装路径,然后用update1重新安装visual studio 2015

  1. TACO 依赖项检查器(工具>选项>Apache Cordova 工具>运行依赖项检查器)表明未安装 Android SDK.我按照建议的链接进行了手动安装,然后重新运行 Android SDK 管理器和检查器,直到安装了所有必需的组件.

现在可以在创建新项目时使用 JavaScript 和 TypeScript 模板......但是新创建的项目不包含任何文件 - 只有解决方案和项目.我猜这是因为我没有在 C: 驱动器上安装 VS2015.

  1. 为了解决这个问题,我以管理员/高级身份执行:

    cd/d "D:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE"devenv.exe/InstallVSTemplates

问题已解决,我可以使用 JavaScript 和 TypeScript 创建 TACO 项目.

I did a clean installation of Visual Studio 2015 Update 1 Enterprise (MSDN Release Date 1/13/2016) after I had install Visual Studio 2015 Community where I installed the Apache Cordova tools components.

When creating a new project...

  1. I do not see the node with the JavaScript templates anymore - though it is in the Common7\IDE\ProjectTemplates structure
  2. I get "The template specified cannot be found" with the new TypeScript TACO templates

解决方案

After some digging and trial/error loops I solved the problem with these steps

  1. MSDN forum entry

I uninstalled the visual studio 2015, delete the regedit key with visual studio 14, delete all the c:\xx\AppData\Local\Temp files and the install path, then reinstalled visual studio 2015 with update1

  1. the TACO dependency checker (Tools>Options>Tools for Apache Cordova>Run Dependency Checker) indicated that the Android SDK is not installed. I followed the suggested links, installed it manually and rerun Android SDK manager and the checker until all required components where installed.

Now the JavaScript and TypeScript templates where available when creating a new project ... but the newly created projects did not contain any files - just the solution and the project. I guess this is caused by the fact that I did not install VS2015 on the C: drive.

  1. to fix this I executed as admin/elevated:

    cd /d "D:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE"
    devenv.exe /InstallVSTemplates 
    

Problem is fixed and I can create TACO projects with JavaScript and TypeScript.

这篇关于Visual Studio 2015 更新 1 - 使用 Cordova 工具创建项目时找不到指定的模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆