如何将 npm 参数传递给 dotnet publish? [英] How do I pass npm parameters to dotnet publish?

查看:26
本文介绍了如何将 npm 参数传递给 dotnet publish?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

长话短说,私有 npm 注册表,企业网络,无法从 github 下载.

Long story short, private npm registry, corporate network, can't download from github.

我需要通过

--no-optional 

npm install 

那个

dotnet publish

作为一部分执行

Target "PublishRunWebpack: (TargetId:162)"

有什么想法吗?MSDN 文档@https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-publish?tabs=netcore21 非常没有帮助.

Any ideas? MSDN documentation @ https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-publish?tabs=netcore21 is super unhelpful.

使用 dotnet core 2.1,如果有关系:)

Using dotnet core 2.1, if it matters :)

谢谢!

推荐答案

我发誓,StackOverflow 最强大的地方在于,只要您提出问题,解决问题的几率就会呈指数级增长.

I swear, StackOverflow's greatest power is that the odds of figuring out your problem increase exponentially as soon as you ask the question.

PublishWebPack

是 csproj 的一部分.卸载/编辑/修改你的心的内容!

is part of the csproj. Unload / edit / modify to your heart's content!

这篇关于如何将 npm 参数传递给 dotnet publish?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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