小匕首-dotnet cli使用nuget指令
美男子玩编程
共 2421字,需浏览 5分钟
· 2022-04-15
一、指令清单
输入指令dotnet nuget -h
>dotnet nuget -h
NuGet Command Line 6.0.0.129
Usage: dotnet nuget [options] [command]
Options:
-h|--help Show help information
--version Show version information
Commands:
add 添加 NuGet 源。
delete 从服务器删除一个包。
disable 禁用 NuGet 源。
enable 启用 NuGet 源。
list 列出配置的 NuGet 源。
locals 清除或列出本地 NuGet 资源,例如 http 请求缓存、包文件夹、插件操作缓存或计算机范围全局包文件夹。
push 将包推送到服务器并发布。
remove 移除 NuGet 源。
sign 使用指定的证书对 处的 NuGet 包进行签名。
trust 管理受信任的签名人。
update 更新 NuGet 源。
verify 验证已签名的 NuGet 包。
Use "dotnet nuget [command] --help" for more information about a command.
二、获取配置源
列出配置的 NuGet
源:
>dotnet nuget list -h
Usage: dotnet nuget list [options] [command]
Options:
-h|--help Show help information
Commands:
client-cert 列出配置中的所有客户端证书。
source 列出所有配置的 NuGet 源。
查看本地数据源source
:
>dotnet nuget list source
注册的源:
1. nuget.org [已启用]
https://api.nuget.org/v3/index.json
2. Osharp [已禁用]
D:\Program Files\Nuget\Osharp\nupkgs
3. Microsoft Visual Studio Offline Packages [已禁用]
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\
三、启用/禁用配置源
禁用配置源
>dotnet nuget disable -h
Usage: dotnet nuget disable [options] [command]
Options:
-h|--help Show help information
Commands:
source 禁用 NuGet 源。
Use "disable [command] --help" for more information about a command.
启用配置源
>dotnet nuget enable -h
Usage: dotnet nuget enable [options] [command]
Options:
-h|--help Show help information
Commands:
source 启用 NuGet 源。
Use "enable [command] --help" for more information about a command.
启用/停用目标源
>dotnet nuget disable source -h
Usage: dotnet nuget disable source [arguments] [options]
Arguments:
name 源的名称。
Options:
--configfile NuGet 配置文件。如果指定,将仅使用此文件中的设置。如果未指定,则将使用当前目录中的配置文件的层次结构。有关详细信息,请参阅 https://docs.microsoft.com/nuget/consume-packages/configuring-nuget-behavior。
-h|--help Show help information
>dotnet nuget enable source -h
Usage: dotnet nuget enable source [arguments] [options]
Arguments:
name 源的名称。
Options:
--configfile NuGet 配置文件。如果指定,将仅使用此文件中的设置。如果未指定,则将使用当前目录中的配置文件的层次结构。有关详细信息,请参阅 https://docs.microsoft.com/nuget/consume-packages/configuring-nuget-behavior。
-h|--help Show help information
操作案例
>dotnet nuget disable source nexus-server
已成功禁用名称为 nexus-server 的包源。
评论
金融研究 | 使用Python测量关键审计事项的「信息含量」
Tips: 公众号推送后内容只能更改一次,且只能改20字符。如果内容出问题,或者想更新内容, 只能重复推送。为了更好的阅读体验,建议阅读本文博客版, 链接地址https://textdata.cn/blog/2023-01-13-information-content-of-critical-aud
大邓和他的Python
0
金融研究(更新) | 使用Python构建关键审计事项的「信息含量」
Tips: 公众号推送后内容只能更改一次,且只能改20字符。如果内容出问题,或者想更新内容, 只能重复推送。为了更好的阅读体验,建议阅读本文博客版, 链接地址https://textdata.cn/blog/2023-01-13-information-content-of-critical-aud
大邓和他的Python
0
词向量(更新) | 使用MD&A2001-2022语料训练Word2Vec模型
buTips: 公众号推送后内容只能更改一次,且只能改20字符。 如果内容出问题,或者想更新内容, 只能重复推送。 为了更好的阅读体验,建议阅读本文博客版, 链接地址https://textdata.cn/blog/2023-03-24-load-w2v-and-expand-your-concpe
大邓和他的Python
0
管理世界2024 | 使用管理层讨论与分析测量「企业人工智能指标」
Tips: 公众号推送后内容只能更改一次,且只能改20字符。如果内容出问题,或者想更新内容, 只能重复推送。为了更好的阅读体验,建议阅读本文博客版, 链接地址 https://textdata.cn/blog/2024-04-19-ai-improve-firm-productivity/
大邓和他的Python
0
让扩散模型听话的小秘籍?CAN:通过操控权重来控制条件生成模型,图像生成效率大升级!
↑ 点击蓝字 关注极市平台作者丨科技猛兽编辑丨极市平台极市导读 本文提出的 CAN 模型 (Condition-Aware Neural Network) 是一种对图像生成模型添加控制的方法。CAN 可以通过动态操纵神经网络的权重来控制图像生成过程。作者在 ImageNet 图像
极市平台
0
GPT的风也吹到了CV,详解自回归视觉模型的先驱! ImageGPT:使用图像序列训练图像 GPT模型
作者丨科技猛兽编辑丨极市平台导读 在 CIFAR-10 上,iGPT 使用 linear probing 实现了 96.3% 的精度,优于有监督的 Wide ResNet,并通过完全微调实现了 99.0% 的精度,匹配顶级监督预训练模型。本文目录1 自回归视觉模型的先驱 ImageGPT:
机器学习初学者
0
代码 | 使用 MD&A文本测量「企业不确定性感知FEPU」
Tips: 为了更好的阅读体验,建议阅读本文博客版, 链接地址https://textdata.cn/blog/2024-04-25-firm-economic-policy-uncertainty/本文使用的缩写EPU 经济政策不确定性(Economic Policy Uncerta
大邓和他的Python
0
面试官:在原生input上面使用v-model和组件上面使用有什么区别?
前言面试官:vue3的v-model都用过吧,来讲讲。粉丝:v-model其实就是一个语法糖,在编译时v-model会被编译成:modelValue属性和@update:modelValue事件。一般在子组件中定义一个名为modelValue的props来接收父组件v-model传递的值,然后当子组
高级前端进阶
0