小编Ian*_*Ray的帖子

如何使用 Visual Studio 2019 设置私有 Nuget 包注册表?

我正在尝试通过 NuGet 包管理器在 Visual Studio 2019 中提供一个 .NET Framework v4.5.2 包,该包来自 Github 的私有 NuGet 包注册表系统。

我正在使用的重要东西:

  • .NET 框架 4.5.2
  • Github 操作
  • GitHub
  • Github 包注册中心 (GPR)
  • Visual Studio 2019/NuGet 包管理器

我的目标是什么?

整个生命周期看起来有点像这样:

  1. 我的项目的 repo 有一个 CI 工作(Github 品牌)要msbuild发布nupkg。它将所有内容打包并部署到https://nuget.pkg.github.com/ <my-private-org>。
  2. 在 Visual Studio 2019 中,打开一个给定的项目,用户应该能够引用https://nuget.pkg.github.com/ <my-private-org> 作为自定义 NuGet 提要,并声明“我的项目”作为依赖。

什么有效,什么无效?

[Private] Failed to retrieve metadata from source 'https://nuget.pkg.github.com/<my-private-organization>/query?q=&skip=0&take=26&prerelease=true&supportedFramework=.NETFramework,Version=v4.7&semVerLevel=2.0.0'.
  Response status code does …
Run Code Online (Sandbox Code Playgroud)

.net nuget visual-studio-2019 github-package-registry

3
推荐指数
1
解决办法
1453
查看次数

尝试编译Microsoft as-is提供的.NET源代码,获得数百个错误

我从https://referencesource.microsoft.com/下载了Microsoft .NET 4.5.1 ,尝试使用提供的ndp.sln解决方案在visual studio中构建它,并获得大约600个错误和400个警告.这个资源实际上不是用于编译吗?如果是这样,是否有可编译的微软.NET源项目?

.net c# visual-studio

2
推荐指数
1
解决办法
99
查看次数