我們使用的本地Nuget源結構化爲分層文件夾。信息包中未找到包
我從NuGet包管理器3.5.0.1737這個錯誤的Visual Studio 2015年在:
\ HD \ teamshare \ NugetsNew:包 'Configuration.WebAPI.Client.1.0.16405.2-α' 未發現來源'\ hd \ teamshare \ NugetsNew'。
Severity Code Description Project File Line Suppression State
Error NuGet Package restore failed for project Softs\FrontEnd\Web.FormHost: NuGet.Protocol.Core.Types.FatalProtocolException: Unable to find version '1.0.16405.2-alpha' of package 'Configuration.WebAPI.Client'.
\\hd\teamshare\NugetsNew: Package 'Configuration.WebAPI.Client.1.0.16405.2-alpha' is not found on source '\\hd\teamshare\NugetsNew'.
https://api.nuget.org/v3/index.json: Package 'Configuration.WebAPI.Client.1.0.16405.2-alpha' is not found on source 'https://api.nuget.org/v3/index.json'.
at NuGet.PackageManagement.PackageDownloader.<GetDownloadResourceResultAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.PackageManagement.NuGetPackageManager.<RestorePackageAsync>d__68.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.PackageManagement.PackageRestoreManager.<RestorePackageAsync>d__39.MoveNext(). 0
正如你所看到的,包'Configuration.WebAPI.Client.1.0.16405.2-α'沒有找到。
這個nuget已經發布在當地飼料中,並且由我的一位同事在指定的項目中添加。
這是我第一次有這樣的信息。我上週升級到了這個特定版本的Nuget Package Manager。
nuget存在於目錄結構中。
在interresting的一點是,過程監控顯示這個目錄上沒有活動。它顯示其他nuget文件夾上的活動。
我很高興您通過回滾擴展來解決此問題。請標記您的答案,這對有同樣問題的其他社區是有益的。 –