NuGet脚本到不同的目录 [英] NuGet scripts to different directory

查看:29
本文介绍了NuGet脚本到不同的目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Nuget 包将 Javascript 文件下载到 ~/Scripts

Nuget packages download Javascript files to ~/Scripts

我更喜欢将我的内容整理在一个 ~/content 文件夹中,其中包含

I prefer to keep my content organized in a ~/content folder, which contains

~/content/css
~/content/images
~/content/scripts
~/content/scripts/vendor (for packages/ downlaoded scripts)
~/content/scripts/site (my own site's JS)

如何让 Nuget 将 Javascript 文件下载到 ~/content/scripts/vendor?

How do I make Nuget download Javascript files to ~/content/scripts/vendor?

推荐答案

目前,NuGet 不支持在默认位置以外的其他位置安装包资源.现有的 NuGet 工作项将涵盖此功能:#1914 - 允许可配置包资源文件夹.

At the moment, NuGet doesn't support installing packages resources elsewhere than the default location. There's an existing NuGet work item that would cover this feature : #1914 - Allow package resource folders to be configurable.

这篇关于NuGet脚本到不同的目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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