Visual Studio 2015 Update 1 - The template specified cannot be found when creating project with Cordova tools

耗尽温柔 提交于 2019-12-11 12:16:19

问题


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

回答1:


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.



来源:https://stackoverflow.com/questions/35111107/visual-studio-2015-update-1-the-template-specified-cannot-be-found-when-creati

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!