如何将 npm 参数传递给 dotnet publish? [英] How do I pass npm parameters to 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屋!