我可以使用 NuGet for JavaScript 库而不将它们放在顶级 Scripts 文件夹中吗?
我很乐意将 NuGet 用于 jQuery、jQuery UI、Modernizr、Knockout.js 等。但 NuGet 希望将关联文件放在 /Scripts
中,这会变得太混乱。我更希望它们进入 /Content/Scripts/libraries
,或者至少进入 /Scripts/libraries
。
这可能吗?
I'd love to use NuGet for jQuery, jQuery UI, Modernizr, Knockout.js, and more. But NuGet wants to put the associated files in /Scripts
, which would get way too messy. I'd much prefer them to go into /Content/Scripts/libraries
, or at the very least /Scripts/libraries
.
Is this possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这不是 NuGet 本身所做的事情。文件的去向由包本身定义。因此,包的作者需要更改位置:-/但是,您可以编写自己的包,将文件放在正确的位置。 http://nuget.org/Contribute/Index
This is not something the NuGet Itself does. Where files go is defined by the Packages themselves. So the Author of the package would need to change the location :-/ You could however author your own package that put the files in the right spot. http://nuget.org/Contribute/Index