我正在尝试通过 NuGet 包管理器在 Visual Studio 2019 中提供一个 .NET Framework v4.5.2 包,该包来自 Github 的私有 NuGet 包注册表系统。
整个生命周期看起来有点像这样:
msbuild发布nupkg。它将所有内容打包并部署到https://nuget.pkg.github.com/ <my-private-org>。GitHub成功发布了我的包--访问https://github.com/my-private-organization?tab=packages就可以看到了。
但是,我无法让 Visual Studio 2019 支持我的私有 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) 我从https://referencesource.microsoft.com/下载了Microsoft .NET 4.5.1 ,尝试使用提供的ndp.sln解决方案在visual studio中构建它,并获得大约600个错误和400个警告.这个资源实际上不是用于编译吗?如果是这样,是否有可编译的微软.NET源项目?