project.json中的'prebuild'脚本未运行 [英] 'prebuild' scripts in project.json doesn't run

查看:110
本文介绍了project.json中的'prebuild'脚本未运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用DNX框架的.NET 5 Web应用程序,并且无论何时构建项目,我都想运行"npm install","bower install"等.

I have a .NET 5 web application using the DNX framework, and I want to run 'npm install', 'bower install' and others, whenever I build the project.

现在,我可以使用'prepublish'在发布时执行此操作,但它似乎不适用于'prebuild',尽管我看到有可能

Right now I'm able to do so on publish, using 'prepublish', but it doesn't seem to work with 'prebuild', although I saw it is possible here

我现在所拥有的:

"scripts": {
    "prepublish": [ "npm install", "bower install", "tsd install", "gulp min" ]
}

推荐答案

从RC1开始,您必须产生输出" 通过dnu通过管道传递构建:

As of RC1, you have to "produce outputs" to pipe the build through dnu:

这篇关于project.json中的'prebuild'脚本未运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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