使用命令行提取 Nupkg 文件

编程入门 行业动态 更新时间:2024-10-27 13:24:15
本文介绍了使用命令行提取 Nupkg 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

首先,在处理某些 .nupkg 文件时,我根本不想使用 Visual Studio.

Firstly, I do not want to use Visual Studio at all when dealing with the certain .nupkg files.

我知道有一个名为 NuGet Package Explorer 的工具,它可以使用 gui 将 nupkg 文件导出到某个文件位置,但我希望设置一个 MSBuild 任务来运行和解压大约 50 个 .nupkg 文件,使用命令行.

I know there is a tool called NuGet Package Explorer and this can export nupkg files to a certain file location using a gui, but I'm looking to setup a MSBuild task to run and unpack about 50 .nupkg files, using the command line.

我的问题是,是否有可以通过命令行使用的工具将 .nupkg 文件解压缩到指定的文件位置?

My question is, is there a tool you can use via the command line which will unpack .nupkg files to a specified file location?

推荐答案

您还可以使用 NuGet 命令行,将本地主机指定为安装的一部分.例如,如果您的包存储在当前目录中

You can also use the NuGet command line, by specifying a local host as part of an install. For example if your package is stored in the current directory

nuget install MyPackage -Source %cd% -OutputDirectory packages

将其解压到目标目录中.

will unpack it into the target directory.

更多推荐

使用命令行提取 Nupkg 文件

本文发布于:2023-10-14 12:22:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1491045.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:命令行   文件   Nupkg

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!