简体   繁体   English

在适用于Apache Cordova的VS2015 RC工具上使用Nuget

[英]Using Nuget on VS2015 RC Tools for Apache Cordova

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. VS2015RC与Cordova的比较新手,但是我有一个关于如何使用Nuget添加依赖项(如Jquery,Angular等)的查询。

If you add the dependencies or packages using Nuget then they are added to the root of the Project (Not in the www folder). 如果使用Nuget添加依赖项或程序包,则它们将被添加到项目的根目录(不在www文件夹中)。 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. 当然,您只能移动文件,但是这会对我们正在使用的某些Source Control造成破坏,并且,如果您想再次“升级”依赖项或使用Nuget进行打包,则必须记住将其再次移回根目录。

So.... 所以....

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

Thanks in advance for the help. 先谢谢您的帮助。

The way I understood it, the directory structure was changed in the RC. 据我了解,目录结构在RC中已更改。 I chalked the wrong directory up to the nuget configs not being updated yet. 我将错误的目录归因于尚未更新的nuget配置。 I expect the gold release to have that fixed. 我预计黄金发行将得到修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM