如何在PowerShell脚本中使用NuGet包? [英] How to use a NuGet package within a PowerShell script?
本文介绍了如何在PowerShell脚本中使用NuGet包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在编写一个使用 Mono.Cecil 库的PowerShell脚本.我将如何安装该软件包,以便可以在脚本中使用它?谢谢!
I'm writing a PowerShell script that makes use of the Mono.Cecil library. How would I install the package so I can use it from within the script? Thanks!
(出于记录,我在问这个问题之前曾尝试过Google搜索,但结果只是有关
(For the record, I did try Googling before asking this, but all that came up was results about PMC and Visual Studio, which aren't relevant to this question.)
推荐答案
无法找到一个好的解决方案,我最终只是通过NuGet API手动下载并解压缩了软件包.
Unable to find a good solution, I ended up just downloading and unzipping the package manually via the NuGet API.
For those who are interested/others who have this problem, here is the code I used.
这篇关于如何在PowerShell脚本中使用NuGet包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文