asp.net-mvc – ASP.Net 5 project.json脚本命令的完整列表? (V
我查看了project.json的ASP.Net 5团队wiki条目,以确定哪些脚本命令可用,目前列出了以下内容:
{ "scripts": { "prebuild": "echo before building","postbuild": "echo after building","prepack": "echo before packing","postpack": "echo after packing","prerestore": "echo before restoring packages","postrestore": "echo after restoring packages" } } 这些都很直观,易于理解;然而在Visual Studio中,只有预恢复和后恢复事件似乎实际上已经开始了。预制和后期建筑没有。 默认(beta 6)Visual Studio 2015模板添加了以下脚本命令,该命令不在官方列表中: "scripts": { "prepublish": [ "npm install","bower install","gulp clean","gulp min" ] } 另外,似乎还有其他的,没有记录的命令,我从同事创建的一个示例项目继承下来: "scripts": { "first-run": "npm install -g gulp bower && npm run update","prepare": [ "npm install && npm prune && bower install && bower prune && gulp default" ],"prepublish": [ "npm install","gulp default" ],"update": "npm install && npm prune && bower install && bower prune" } 这些似乎工作(他们执行),但我的同事和我无法找到文档来解释: >如果它们有效或已被弃用。 为了进一步混淆事实,Visual Studio 2015智能感知显示不在官方列表中的其他命令: 有没有一个有效的project.json脚本命令列表,它们的用法等,特别是对于Visual Studio 2015? 解决方法
更新24/05/2016:
微软正在淘汰project.json并返回csproj。
Quote taken from here 2016年3月30日update on the Nuget blog发布
project.json schema列出了以下可用的脚本命令: "scripts": { "type": "object","description": "Scripts to execute during the various stages.","properties": { "precompile": { "$ref": "#/definitions/script" },"postcompile": { "$ref": "#/definitions/script" },"prepack": { "$ref": "#/definitions/script" },"postpack": { "$ref": "#/definitions/script" },"prepublish": { "$ref": "#/definitions/script" },"postpublish": { "$ref": "#/definitions/script" },"prerestore": { "$ref": "#/definitions/script" },"postrestore": { "$ref": "#/definitions/script" },"prepare": { "$ref": "#/definitions/script" } } }, (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- 如何在放大高图时启用y轴平移?
- asp.net – IIS 7强制新鲜图像
- asp.net-mvc-3 – 在LINQ Query中调用一个方法
- asp.net-mvc – 构建MVC CMS
- asp.net-mvc – 何时将MVC视图拆分为两个?
- 提供第三种代码生成方式——通过自定义BuildProvider为ASP.
- asp.net – SQL Azure不支持SqlCacheDependency?是否有任何
- asp.net – 如何捕获异常形式ObjectDataSource.Updata()
- asp.net – 在按钮单击时动态添加新文本框
- 在运行ASP.NET的Web场中,您使用什么进行分布式缓存?