使用命令行提取 Nupkg 文件 [英] Extracting Nupkg files using command line

查看:62
本文介绍了使用命令行提取 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 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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