离线开发和Pharmacist 2.0.8 nuget(PharmacistNuGetTask.GetPackages)有问题,如何设置环境来解决这个问题?

离线开发和Pharmacist 2.0.8 nuget(PharmacistNuGetTask.GetPackages)有问题,如何设置环境来解决这个问题?,nuget,reactiveui,Nuget,Reactiveui,在脱机生成项目时,我从Pharmacist.MSBuild中得到一个异常,该异常在PharmacistNuGetTask.GetPackages中失败。脱机时如何设置环境或其他解决方法以正确生成.Events() Pharmacist.MSBuild.targets(48, 5): [MSB4018] The "PharmacistNuGetTask" task failed unexpectedly. NuGet.Protocol.Core.Types.FatalP

在脱机生成项目时,我从Pharmacist.MSBuild中得到一个异常,该异常在PharmacistNuGetTask.GetPackages中失败。脱机时如何设置环境或其他解决方法以正确生成.Events()

    Pharmacist.MSBuild.targets(48, 5): [MSB4018] The "PharmacistNuGetTask" task failed unexpectedly.
NuGet.Protocol.Core.Types.FatalProtocolException: Failed to retrieve information about 'Forms9Patch' from remote source 'https://api.nuget.org/v3-flatcontainer/forms9patch/index.json'. ---> System.Net.Http.HttpRequestException: No such host is known ---> System.Net.Sockets.SocketException: No such host is known
  at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x00110] in <3d26ca8f3b9c477681c58a62720ed062>:0 
   --- End of inner exception stack trace ---
  at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x001ac] in <3d26ca8f3b9c477681c58a62720ed062>:0 
  at System.Net.Http.HttpConnectionPool.CreateConnectionAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00134] in <3d26ca8f3b9c477681c58a62720ed062>:0 
  at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync (System.Threading.Tasks.ValueTask`1[TResult] creationTask) [0x000a2] in <3d26ca8f3b9c477681c58a62720ed062>:0 
  at System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x00089] in <3d26ca8f3b9c477681c58a62720ed062>:0 
  at System.Net.Http.AuthenticationHelper.SendWithAuthAsync (System.Net.Http.HttpRequestMessage request, System.Uri authUri, System.Net.ICredentials credentials, System.Boolean preAuthenticate, System.Boolean isProxyAuth, System.Boolean doRequestAuth, System.Net.Http.HttpConnectionPool pool, System.Threading.CancellationToken cancellationToken) [0x00112] in <3d26ca8f3b9c477681c58a62720ed062>:0 
  at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x000ba] in <3d26ca8f3b9c477681c58a62720ed062>:0 
  at System.Net.Http.DecompressionHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x000ca] in <3d26ca8f3b9c477681c58a62720ed062>:0 
  at NuGet.Protocol.ServerWarningLogHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x0007f] in <4456e3d4ab71486fb0836ee47462fd28>:0 
  at NuGet.Protocol.StsAuthenticationHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x000bc] in <4456e3d4ab71486fb0836ee47462fd28>:0 
  at NuGet.Protocol.HttpSourceAuthenticationHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x000c1] in <4456e3d4ab71486fb0836ee47462fd28>:0 
  at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered (System.Threading.Tasks.Task`1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x000b3] in <3d26ca8f3b9c477681c58a62720ed062>:0 
  at NuGet.Protocol.HttpRetryHandler+<>c__DisplayClass2_1.<SendAsync>b__0 (System.Threading.CancellationToken timeoutToken) [0x000a9] in <4456e3d4ab71486fb0836ee47462fd28>:0 
  at NuGet.Protocol.TimeoutUtility.StartWithTimeout[T] (System.Func`2[T,TResult] getTask, System.TimeSpan timeout, System.String timeoutMessage, System.Threading.CancellationToken token) [0x001bd] in <4456e3d4ab71486fb0836ee47462fd28>:0 
  at NuGet.Protocol.HttpRetryHandler.SendAsync (NuGet.Protocol.HttpRetryHandlerRequest request, System.String source, NuGet.Common.ILogger log, System.Threading.CancellationToken cancellationToken) [0x00736] in <4456e3d4ab71486fb0836ee47462fd28>:0 
  at NuGet.Protocol.HttpSource.GetThrottledResponse (System.Func`1[TResult] requestFactory, System.TimeSpan requestTimeout, System.TimeSpan downloadTimeout, System.Int32 maxTries, System.Boolean isRetry, System.Boolean isLastAttempt, System.Guid sessionId, NuGet.Common.ILogger log, System.Threading.CancellationToken cancellationToken) [0x001fe] in <4456e3d4ab71486fb0836ee47462fd28>:0 
  at NuGet.Protocol.HttpSource+<>c__DisplayClass14_0`1[T].<GetAsync>b__0 (System.Threading.CancellationToken lockedToken) [0x00287] in <4456e3d4ab71486fb0836ee47462fd28>:0 
  at NuGet.Common.ConcurrencyUtilities.ExecuteWithFileLockedAsync[T] (System.String filePath, System.Func`2[T,TResult] action, System.Threading.CancellationToken token) [0x002ac] in <954011d4ef064e0ea5a33e20a885df9f>:0 
  at NuGet.Common.ConcurrencyUtilities.ExecuteWithFileLockedAsync[T] (System.String filePath, System.Func`2[T,TResult] action, System.Threading.CancellationToken token) [0x0036f] in <954011d4ef064e0ea5a33e20a885df9f>:0 
  at NuGet.Protocol.HttpSource.GetAsync[T] (NuGet.Protocol.HttpSourceCachedRequest request, System.Func`2[T,TResult] processAsync, NuGet.Common.ILogger log, System.Threading.CancellationToken token) [0x000e7] in <4456e3d4ab71486fb0836ee47462fd28>:0 
  at NuGet.Protocol.HttpFileSystemBasedFindPackageByIdResource.FindPackagesByIdAsync (System.String id, NuGet.Protocol.Core.Types.SourceCacheContext cacheContext, NuGet.Common.ILogger logger, System.Threading.CancellationToken cancellationToken) [0x00219] in <4456e3d4ab71486fb0836ee47462fd28>:0 
   --- End of inner exception stack trace ---
  at NuGet.Protocol.HttpFileSystemBasedFindPackageByIdResource.FindPackagesByIdAsync (System.String id, NuGet.Protocol.Core.Types.SourceCacheContext cacheContext, NuGet.Common.ILogger logger, System.Threading.CancellationToken cancellationToken) [0x002dc] in <4456e3d4ab71486fb0836ee47462fd28>:0 
  at NuGet.Protocol.HttpFileSystemBasedFindPackageByIdResource.EnsurePackagesAsync (System.String id, NuGet.Protocol.Core.Types.SourceCacheContext cacheContext, NuGet.Common.ILogger logger, System.Threading.CancellationToken cancellationToken) [0x00108] in <4456e3d4ab71486fb0836ee47462fd28>:0 
  at NuGet.Protocol.HttpFileSystemBasedFindPackageByIdResource.GetAllVersionsAsync (System.String id, NuGet.Protocol.Core.Types.SourceCacheContext cacheContext, NuGet.Common.ILogger logger, System.Threading.CancellationToken cancellationToken) [0x000da] in <4456e3d4ab71486fb0836ee47462fd28>:0 
  at Pharmacist.Core.NuGet.NuGetPackageHelper.GetBestMatch (NuGet.LibraryModel.LibraryRange identity, NuGet.Protocol.Core.Types.FindPackageByIdResource findPackageResource, System.Threading.CancellationToken token) [0x000b7] in <7f80b6fb2890461a872bfad97de8e256>:0 
  at Pharmacist.Core.NuGet.NuGetPackageHelper.GetBestMatch (NuGet.LibraryModel.LibraryRange identity, NuGet.Configuration.PackageSource nugetSource, System.Threading.CancellationToken token) [0x00120] in <7f80b6fb2890461a872bfad97de8e256>:0 
  at Pharmacist.MsBuild.NuGet.PharmacistNuGetTask.GetPackages () [0x00086] in <18101c0b9a9e4fa096b2663b22ef422e>:0 
  at Pharmacist.MsBuild.NuGet.PharmacistNuGetTask.Execute () [0x0007e] in <18101c0b9a9e4fa096b2663b22ef422e>:0 
  at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00029] in <43ebad1e929b480db69b82ce34de96b7>:0 
  at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x002a9] in <43ebad1e929b480db69b82ce34de96b7>:0 
Pharmacist.MSBuild.targets(48,5):[MSB4018]任务“PharmacistNuGetTask”意外失败。
NuGet.Protocol.Core.Types.FatalProtocolException:未能从远程源检索有关“Forms9Patch”的信息https://api.nuget.org/v3-flatcontainer/forms9patch/index.json'. ---> System.Net.Http.HttpRequestException:未知此类主机-->System.Net.Sockets.SocketException:未知此类主机
位于:0中的System.Net.Http.ConnectHelper.ConnectAsync(System.String主机、System.Int32端口、System.Threading.CancellationToken CancellationToken)[0x00110]
---内部异常堆栈跟踪的结束---
在System.Net.Http.ConnectHelper.ConnectAsync(System.String主机、System.Int32端口、System.Threading.CancellationToken CancellationToken)[0x001ac]中,位于:0
在:0中的System.Net.Http.HttpConnectionPool.CreateConnectionAsync(System.Net.Http.HttpRequestMessage请求,System.Threading.CancellationToken CancellationToken)[0x00134]处
位于:0中的System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync(System.Threading.Tasks.ValueTask`1[TResult]creationTask)[0x000a2]
0中的System.Net.Http.HttpConnectionPool.SendWithRetryAsync(System.Net.Http.HttpRequestMessage请求、System.Boolean doRequestAuth、System.Threading.CancellationToken CancellationToken)[0x00089]处
位于System.Net.Http.AuthenticationHelper.SendWithAuthAsync(System.Net.Http.HttpRequestMessage请求、System.Uri authUri、System.Net.ICredentials凭据、System.Boolean预验证、System.Boolean isProxyAuth、System.Boolean doRequestAuth、System.Net.Http.HttpConnectionPool池、System.Threading.CancellationToken CancellationToken)[0x00112]输入:0
在System.Net.Http.RedirectHandler.SendAsync(System.Net.Http.HttpRequestMessage请求,System.Threading.CancellationToken CancellationToken)[0x000ba]中:0
0中的System.Net.Http.DecompressionHandler.SendAsync(System.Net.Http.HttpRequestMessage请求,System.Threading.CancellationToken CancellationToken)[0x000ca]
在:0中的NuGet.Protocol.ServerWarningLogHandler.SendAsync(System.Net.Http.HttpRequestMessage请求,System.Threading.CancellationToken CancellationToken)[0x0007f]处
在:0中的numget.Protocol.StsAuthenticationHandler.sendaync(System.Net.Http.HttpRequestMessage请求,System.Threading.CancellationToken CancellationToken)[0x000bc]处
位于:0中的NuGet.Protocol.HttpSourceAuthenticationHandler.SendAsync(System.Net.Http.HttpRequestMessage请求,System.Threading.CancellationToken CancellationToken)[0x000c1]
在System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(System.Threading.Tasks.Task`1[TResult]sendTask,System.Net.Http.HttpRequestMessage请求,System.Threading.CancellationTokenSource cts,System.Boolean disposeCts)[0x000b3]中:0
在NuGet.Protocol.HttpRetryHandler+c__显示Class2_1.b__0(System.Threading.CancellationToken timeoutToken)[0x000a9]中:0
在NuGet.Protocol.TimeoutUtility.StartWithTimeout[T](System.Func`2[T,TResult]getTask,System.TimeSpan超时,System.String timeoutMessage,System.Threading.CancellationToken令牌)[0x001bd]中:0
0中的NuGet.Protocol.HttpRetryHandler.SendAsync(NuGet.Protocol.HttpRetryHandlerRequest请求,System.String源,NuGet.Common.ILogger日志,System.Threading.CancellationToken CancellationToken)[0x00736]
在NuGet.Protocol.HttpSource.GetThrottledResponse(System.Func`1[TResult]requestFactory、System.TimeSpan requestTimeout、System.TimeSpan downloadTimeout、System.Int32 Maxtrys、System.Boolean isRetry、System.Boolean isLastAttempt、System.Guid sessionId、NuGet.Common.iLog、System.Threading.CancellationToken CancellationToken CancellationToken)[0x001fe]年:0
在NuGet.Protocol.HttpSource+c_uuuu中显示Class14_0`1[T].b_uuu0(System.Threading.CancellationToken lockedToken)[0x00287]in:0
在NuGet.Common.ConcurrencyUtilities.ExecuteWithFileLockedAsync[T](System.String文件路径,System.Func`2[T,TResult]操作,System.Threading.CancellationToken令牌)[0x002ac]中:0
在NuGet.Common.ConcurrencyUtilities.ExecuteWithFileLockedAsync[T](System.String文件路径,System.Func`2[T,TResult]操作,System.Threading.CancellationToken令牌)[0x0036f]中:0
在NuGet.Protocol.HttpSource.GetAsync[T](NuGet.Protocol.HttpSourceCachedRequest请求,System.Func`2[T,TResult]processAsync,NuGet.Common.ILogger日志,System.Threading.CancellationToken令牌)[0x000e7]中:0
在NuGet.Protocol.HttpFileSystemBasedFindPackageByIdResource.FindPackagesByIdAsync(System.String id,NuGet.Protocol.Core.Types.SourceCacheContext cacheContext,NuGet.Common.ILogger记录器,System.Threading.CancellationToken CancellationToken)[0x00219]中:0
---内部异常堆栈跟踪的结束---
在NuGet.Protocol.HttpFileSystemBasedFindPackageByIdResource.FindPackagesByIdAsync(System.String id,NuGet.Protocol.Core.Types.SourceCacheContext cacheContext,NuGet.Common.ILogger记录器,System.Threading.CancellationToken CancellationToken)[0x002dc]中:0
在NuGet.Protocol.HttpFileSystemBasedFindPackageByIdResource.EnsurePackagesAsync(System.String id,NuGet.Protocol.Core.Types.SourceCacheContext cacheContext,NuGet.Common.ILogger记录器,System.Threading.CancellationToken CancellationToken)[0x00108]中:0
在NuGet.Protocol.HttpFileSystemBasedFindPackageByIdResource.GetAllVersionAsync(System.String id,NuGet.Protocol.Core.Types.SourceCacheContext cacheContext,NuGet.Common.ILogger logger,System.Threading.CancellationToken CancellationToken)[0x000da]中:0
位于Pharmacist.Core.NuGet.NuGetPackageHelper.GetBestMatch(NuGet.LibraryModel.LibraryRange标识,NuGet.Protocol.Core.Types.FindPackage