.net core 在nexus上使用nuget代理时,dotnet还原失败

.net core 在nexus上使用nuget代理时,dotnet还原失败,.net-core,nuget,nexus,.net Core,Nuget,Nexus,我在内部网络的Nexus(V3.9.0-01)上有一个nuget代理。我自己还没有填充本地NexusRepo(也不知道它是如何完成的,或者是否出现任何问题),但是,我可以手动上传新包。生成在代理上进行,无法连接到公共存储库 由于隔离,我必须使用--no restore运行dotnet build/dotnet publish,并使用dotnet restore$projectPath--source$localNexus--runtime win-x64 在NuGet.Frameworks.4.

我在内部网络的Nexus(V3.9.0-01)上有一个nuget代理。我自己还没有填充本地NexusRepo(也不知道它是如何完成的,或者是否出现任何问题),但是,我可以手动上传新包。生成在代理上进行,无法连接到公共存储库

由于隔离,我必须使用
--no restore
运行
dotnet build
/
dotnet publish
,并使用
dotnet restore$projectPath--source$localNexus--runtime win-x64

NuGet.Frameworks.4.7.0
之前,软件包的恢复都很正常。这个包有5个不同的版本(),而不是普通的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'.
即使我在运行dotnet restore`之前使用
dotnet add$projectPath
package--source$localNexus
强制包,还原操作也会失败

注意:此软件包是我的项目中Microsoft.VisualStudio.Web.CodeGeneration.Design的依赖项

可能相关:(使用不同的Nexus版本标记)

问题:

  • 为什么程序包还原失败(即没有拉取最合适的4.7.0-xxx)
  • 这是因为Nexus的一些怪癖吗?还是损坏的包
  • 为什么使用
    dotnet package add
    手动添加有问题的包没有帮助

    • 与Nexus 3.10有完全相同的问题,根据Nexus的问题,似乎在3.14中解决了这一问题

      当您向源存储库请求包时,将从源存储库中填充代理存储库。您不能简单地将新包上载到代理存储库—您需要一个托管存储库。我怀疑你的nuget客户配置错误。你能从你的Nexus和你的nuget配置中显示nuget存储库吗?有解决方案吗?同样的问题,我正在尝试将我的项目配置为使用已设置的Nexus存储库。你能给我指出正确的方向吗?这样我就能做到这一点?