即使在安装了用于Apache Cordova的工具之后,Ionic模板也未加载到Visual Studio 2015社区版中。

时间:2016-09-12 17:47:22

标签: ionic-framework visual-studio-cordova visual-studio-2015

我已经为Apache Cordova安装了'工具'按照微软发布的link进行操作。但是,在这样做后,我仍然无法从在线获取离子模板,因为它仍然提示我安装这些工具。

我试过了:

  • 重新启动Visual Studio。
  • 以管理员模式运行Visual Studio。

更新

  • 我现在还使用了'运行依赖检查器'选项 工具和扩展选项。 VS没有任何理由重新启动 没有输出显示。
  • 此外,清除了Cordova缓存。仍然没有运气。

更新2:

我尝试从VSIX链接安装Ionic模板。仍然出现同样的错误,提示我获取Apache Cordova的工具'。如果有帮助,这是安装日志:

>14-09-2016 07:48:15 AM - Microsoft VSIX Installer
>14-09-2016 07:48:15 AM - -------------------------------------------
>14-09-2016 07:48:22 AM - Initializing Install...
>14-09-2016 07:48:25 AM - Extension Details...
>14-09-2016 07:48:25 AM -   Identifier         : IonicProjectTemplates
>14-09-2016 07:48:25 AM -   Name               : Ionic Project Templates for >Visual Studio
>14-09-2016 07:48:25 AM -   Author             : Tools for Apache Cordova
>14-09-2016 07:48:25 AM -   Version            : 1.0
>14-09-2016 07:48:25 AM -   Description        : Ionic1 Templates in JavaScript >and TypeScript for Visual Studio 2015. (Will require Visual Studio tools for >Apache Cordova)
>14-09-2016 07:48:25 AM -   Locale             : en-US
>14-09-2016 07:48:25 AM -   MoreInfoURL        : http://ionicframework.com/
>14-09-2016 07:48:25 AM -   InstalledByMSI     : False
>14-09-2016 07:48:25 AM -   SupportedFrameworkVersionRange : [4.5,)
>14-09-2016 07:48:25 AM - 
>14-09-2016 07:48:25 AM -   SignatureState     : Unsigned
>14-09-2016 07:48:25 AM -   Supported Products : 
>14-09-2016 07:48:25 AM -       Microsoft.VisualStudio.Enterprise
>14-09-2016 07:48:25 AM -           Version : [14.0,15.0)
>14-09-2016 07:48:25 AM -       Microsoft.VisualStudio.Community
>14-09-2016 07:48:25 AM -           Version : [14.0,15.0)
>14-09-2016 07:48:25 AM -       Microsoft.VisualStudio.Pro
>14-09-2016 07:48:25 AM -           Version : [14.0,15.0)
>14-09-2016 07:48:25 AM - 
>14-09-2016 07:48:25 AM -   References         : 
>14-09-2016 07:48:25 AM -       ------------------------------------------------->------
>14-09-2016 07:48:25 AM -       Identifier   : MultiDeviceHybridApps.8BE90408->69F5-47A5-805A-8C4B01A54061
>14-09-2016 07:48:25 AM -       Name         : Visual Studio Tools for Apache >Cordova
>14-09-2016 07:48:25 AM -       Version      : [14.0.60527.5,15.0)
>14-09-2016 07:48:25 AM -       MoreInfoURL  : http://taco.visualstudio.com/en->us/docs/install-vs-tools-apache-cordova/
>14-09-2016 07:48:25 AM -       Nested       : No
>14-09-2016 07:48:25 AM - 
>14-09-2016 07:48:25 AM - Signature Details...
>14-09-2016 07:48:25 AM -   Extension is not signed.
>14-09-2016 07:48:25 AM - 
>14-09-2016 07:48:25 AM - Searching for applicable products...
>14-09-2016 07:48:25 AM - Found installed product - Microsoft Visual Studio >Community 2015
>14-09-2016 07:48:39 AM - The extension with ID 'IonicProjectTemplates' is not >installed to Microsoft Visual Studio Community 2015.
>14-09-2016 07:48:39 AM - Found installed product - Microsoft Visual Studio 2015 >Shell (Integrated)
>14-09-2016 07:48:39 AM - Found installed product - Global Location
>14-09-2016 07:48:44 AM - The following target products have been selected...
>14-09-2016 07:48:44 AM -   Microsoft Visual Studio Community 2015
>14-09-2016 07:48:44 AM - 
>14-09-2016 07:48:50 AM - Beginning to install extension to Microsoft Visual >Studio Community 2015...
>14-09-2016 07:48:50 AM - Install Error : >Microsoft.VisualStudio.ExtensionManager.MissingReferencesException: This >extension cannot be installed because the following references are missing:
>- Visual Studio Tools for Apache Cordova
>   at >Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.CheckForInstallB>lockers(InstallableExtensionImpl extension, IInstalledExtensionList >modifiedInstalledExtensionsList, Boolean isNestedExtension, Boolean& >olderVersionInstalled)
>   at >Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.InstallInternal(>InstallableExtensionImpl extension, Boolean perMachine, Boolean >isNestedExtension, IDictionary`2 extensionsInstalledSoFar, List`1 vextensionsUninstalledSoFar, IInstalledExtensionList >modifiedInstalledExtensionsList, AsyncOperation asyncOp, UInt64 >totalBytesToWrite, UInt64& totalBytesWritten)
>   at >Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.BeginInstall(IIn>stallableExtension installableExtension, Boolean perMachine, AsyncOperation >asyncOp)
>   at >Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.InstallWorker(II>nstallableExtension extension, Boolean perMachine, AsyncOperation asyncOp)

让我感到震惊的另一个问题是,我是否需要在更新3之前保持我的VS最新状态。现在我正在更新1.这是麻烦制造者吗?

似乎没有选择,请帮忙。

1 个答案:

答案 0 :(得分:1)

我通过安装Visual Studio Update 3解决了我的问题。在Visual Studio中导航,

  

工具 - >扩展程序&更新 - >更新 - >产品更新 - > Visual Studio的更新3。

可以安装Update 3(如果适用)。

深入研究,实际上并非Visual Studio Update能够实现这一目标,而是随之而来的是'Apache Cordova [Update 10]工具。早期版本默认安装了 [Update 7] 。因此,请确保在每次安装配置期间勾选复选框

完成后,您可以从VSIX link新建项目屏幕(follow this guide)安装Ionic扩展程序。