Mic*_*hal 12 nexus nuget .net-core
我在内部网络上有Nexus(v 3.9.0-01)的nuget代理.我自己没有填充本地Nexus仓库(并且不知道它是如何完成的或是否出现任何问题),但是,我可以手动上传新的包.构建在Bamboo代理上进行,无法连接到公共存储库.
由于隔离,我必须使用运行dotnet build/ dotnet publish使用--no-restore和恢复包dotnet restore $projectPath --source $localNexus --runtime win-x64
包裹正在恢复正常,直到NuGet.Frameworks.4.7.0.这个包存在5个不同的版本(据我所知,官方nuget repo的确切副本),只是不是普通的4.7.0(在官方回购中也不存在).然后,dotnet restore生成以下输出:
build 20-Jun-2018 16:24:26 info : GET https://nexus.***.***.***.au/repository/nuget.org-proxy/Microsoft.CodeAnalysis.Workspaces.Common/2.8.0
build 20-Jun-2018 16:24:27 error: The feed 'https://nexus.***.***.***.au/repository/nuget.org-proxy/ [https://nexus.***.***.***.au/repository/nuget.org-proxy/]' lists package 'NuGet.Frameworks.4.7.0' but multiple attempts to download the nupkg have failed. The feed is either invalid or required packages were removed while the current operation was in progress. Verify the package exists on the feed and try again.
build 20-Jun-2018 16:24:27 error: Unable to find package 'NuGet.Frameworks.4.7.0'.
Run Code Online (Sandbox Code Playgroud)
即使我使用dotnet add $projectPath包--source $ localNexus before runningdotnet restore` 强制执行包,恢复操作也会失败.
注意:此包是Microsoft.VisualStudio.Web.CodeGeneration.Design我项目中的依赖项.
可能相关:https://issues.sonatype.org/browse/NEXUS-6159(标有不同的Nexus版本)
问题:
dotnet package add?小智 2
Nexus 3.10 也有完全相同的问题,根据这个 Nexus 问题,这个问题似乎在 3.14 中得到了解决;https://issues.sonatype.org/browse/NEXUS-17611
| 归档时间: |
|
| 查看次数: |
1805 次 |
| 最近记录: |