当前位置: 首页> 财经> 股票 > 慈溪网页设计_安徽六安怎么读_小型项目外包网站_石家庄谷歌seo公司

慈溪网页设计_安徽六安怎么读_小型项目外包网站_石家庄谷歌seo公司

时间:2025/7/13 6:38:01来源:https://blog.csdn.net/qq_22933729/article/details/143584180 浏览次数:0次
慈溪网页设计_安徽六安怎么读_小型项目外包网站_石家庄谷歌seo公司

BaGet是基于 asp.net core编写的一个轻量级的 nuget管理服务,安装部署非常简单。

* Nuget版本号规范:https://learn.microsoft.com/zh-cn/nuget/concepts/package-versioning。

环境准备

  1. 下载 BaGet安装包。

    https://loic-sharma.github.io/BaGet/

  2. 下载 aspnetcore-runtime。

    https://dotnet.microsoft.com/zh-cn/download/dotnet/thank-you/runtime-aspnetcore-3.1.32-windows-x64-installer

  3. 下载 dotnet-runtime。

    https://dotnet.microsoft.com/zh-cn/download/dotnet/thank-you/runtime-3.1.32-windows-x64-installer

命令终端运行(自我寄宿)

  1. 解压 BaGet.zip

  2. 打开 cmd命令行,输入 dotnetBaGet.dll即可运行

以服务的方式运行

  1. 使用nssm进行安装,点击查看具体操作方法 (推荐)。

    https://blog.csdn.net/liyou123456789/article/details/123094277)

  2. 通过windows任务计划

相关配置

找到BaGet目录下的 appsettings.json配置文件。


{"ApiKey": "",//开启硬删除"PackageDeletionBehavior": "HardDelete","AllowPackageOverwrites": true,"Database": {"Type": "Sqlite","ConnectionString": "Data Source=baget.db"},"Storage": {"Type": "FileSystem","Path": ""},"Search": {"Type": "Database"},"Mirror": {"Enabled": false,// Uncomment this to use the NuGet v2 protocol//"Legacy": true,//用于配置到visual studio中"PackageSource": "https://api.nuget.org/v3/index.json"},// Uncomment this to configure BaGet to listen to port 8080.//如果需要配置为Https,//"Https": {//      "Url": "https://*:5004",//      "Certificate": {//        "Path": "<path to .pfx file>",              (.pfx文件路径)//        "Password": "<certificate password>"          (证书密码)//          }//      }// See: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-3.1#listenoptionsusehttps"Kestrel": {"Endpoints": {"Http": {"Url": "http://192.168.1.221:5000"}}},"Logging": {"IncludeScopes": false,"Debug": {"LogLevel": {"Default": "Warning"}},"Console": {"LogLevel": {"Microsoft.Hosting.Lifetime": "Information","Default": "Warning"}}}
}

配置Visual Studio中的Nuget配置

在Visual Studio 包管理器中,添加http://192.168.1.221:5000/v3/index.json 这样子的链接。IP地址可以根据实际部署的`IP`或者`域名`进行修改。

关键字:慈溪网页设计_安徽六安怎么读_小型项目外包网站_石家庄谷歌seo公司

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: