配置 NuGet 源
官方 Visual Studio、.NET CLI 和 nuget.exe 客户端均可直接使用。
源地址
V3 Service Index
https://nuget.xfe.studio/v3/index.json.NET CLI
dotnet nuget add source https://nuget.xfe.studio/v3/index.json --name "XFE Studio"
安装包:
dotnet add package PACKAGE_ID --source https://nuget.xfe.studio/v3/index.json
Visual Studio
- 打开“工具 → NuGet 包管理器 → 程序包管理器设置”。
- 选择“程序包源”,添加名称 XFE Studio。
- 将源设为
https://nuget.xfe.studio/v3/index.json并保存。
发布包
先在账户中创建仅显示一次的 API Key,然后执行:
dotnet nuget push PACKAGE.nupkg --source https://nuget.xfe.studio/v3/index.json --api-key YOUR_API_KEY