在适用于Apache Cordova的VS2015 RC工具上使用Nuget [英] Using Nuget on VS2015 RC Tools for Apache Cordova

查看:54
本文介绍了在适用于Apache Cordova的VS2015 RC工具上使用Nuget的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Cordova成为VS2015RC的新手,但是我有一个关于如何使用Nuget添加依赖项(如Jquery,Angular等)的查询.

Bit of a newbie to VS2015RC with Cordova but I have a query regarding how to use Nuget to add dependencies like say Jquery, Angular etc.

如果使用Nuget添加依赖项或程序包,则它们将被添加到项目的根目录(不在www文件夹中).当然,您只能移动文件,但是这会对我们正在使用的某些Source Control造成破坏,并且,如果您想再次升级"依赖项或使用Nuget进行打包,则必须记住将其再次移回根目录.

If you add the dependencies or packages using Nuget then they are added to the root of the Project (Not in the www folder). Of course you can just move the files but this plays havoc with some of the Source Control we are using and also you have to remember to move it back again to the root if you want to "Upgrade" the dependency or package with Nuget again.

所以......

  1. 有没有办法让Nuget正确安装文件 子文件夹?或...
  2. 还有另一种添加依赖项的方法吗? 软件包(Npm等?),是否有相关的教程?
  1. Is there a way of getting Nuget to install the files in the correct sub-folder? or...
  2. Is there another way to add the dependencies / packages (Npm etc?) and is there a tutorial around for that?

预先感谢您的帮助.

推荐答案

据我了解,目录结构在RC中已更改.我将错误的目录归因于尚未更新的nuget配置.我希望黄金发布能够解决该问题.

The way I understood it, the directory structure was changed in the RC. I chalked the wrong directory up to the nuget configs not being updated yet. I expect the gold release to have that fixed.

这篇关于在适用于Apache Cordova的VS2015 RC工具上使用Nuget的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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