ASP.NET:NuGet/NuPack:配置包文件放置位置
好的,请帮我理解一些事情。我有一个新的 MVC 解决方案,并希望使用 NuGet 使 Modernizr 保持最新状态。
问题是,NuGet 将 Modernizr 脚本放在 ~/Scripts 下。这是行不通的——我们决定将 JS 放在 ~/js 中。
如何修改此包的配置以告诉 NuGet Modernizr 包应该放入 ~/Scripts 或 ~/Scripts/global 中?
Okay, so help me understand something here. I've got a new MVC solution and want to use NuGet to keep Modernizr up to date.
The problem is, NuGet puts the Modernizr scripts under ~/Scripts. This won't work--we've decided to put our JS in ~/js.
How do I modify the configuration of this package to tell NuGet that the Modernizr package should go in ~/Scripts or ~/Scripts/global instead?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不认为你可以做到这一点 - 我不认为这是 NuGet 的功能,而是 NuGet 包内脚本的位置。这可能因软件包而异:-(
I don't think you can do this - I don't think this is functionality of NuGet, but rather the location of the scripts inside the NuGet package. This could vary from one package to another :-(
目前这不是 NuGet 的功能,但在 NuGet 论坛 的讨论中提到了这一功能,包括NuGet 团队的成员。不幸的是,我还没有看到为此正式创建的任何工作项目。我执行了 a快速搜索 NuGet 问题列表 中的“位置”一词,但没有看到与此相关的问题。您可能希望将其作为一项功能来请求。
This is currently not a feature of NuGet, but it was mentioned in discussion on the a NuGet forums including members of the NuGet team. I don't see any work item that has officially been created for this yet, unfortunately. I performed a quick search of the NuGet issues list for the word "location" and didn't see one out there for this. You might want to request it as a feature.