问题描述
即使没有选中在线包源,管理包解决方案是否会尝试访问互联网?
Does Manage Packages for Solution try to access the internet even when no online package source is checked?
我从nuget.org下载了约50个软件包,并将它们复制到一台无法访问互联网的机器上。然后我创建了一个包源指向包含这50个包的文件夹。我根本无法在管理NUGET包解决方案左侧窗口中滚动浏览包
的列表。前四个包装出现大约需要一分钟。滚动条没有响应。单击包不会在右侧窗口中显示包,而是继续显示等待光标
。请注意,所选的ONLY包源是本地文件夹 - 不检查nuget.org源。感觉像包管理器正试图上网,但我不知道还有什么可以告诉我这样做。
I have downloaded approx 50 packages from nuget.org and copied them to a machine which does not have internet access. Then I have created a package source pointing to the folder containing those 50 packages. I simply cannot scroll through the list of packages in the Manage NUGET Packages for Solution left hand window. It takes about one minute for the first four packages to appear. The scroll bar does not respond. Clicking on a package does not display the package in the right hand window, rather the wait cursor continues to display. Note that the ONLY package source selected is the local folder - the nuget.org source is not checked. It feels like package manager is trying to get out to the internet but I don't know where else to tell to stop doing that.
当我在连接到互联网的机器上这样做时,但只选择一个包含50个软件包的本地文件夹包源,一切都按预期工作,没有等待光标。
When I do this on a machine connected to the internet, but selecting only a local folder package source with 50 packages, everything works as expected with no wait cursor.
推荐答案
欢迎来到MSDN论坛。
Welcome to MSDN forum.
据我所知,它不需要网络连接,因为您已创建指向包含这50个包的文件夹的包源。在您的情况下,您使用了两台计算机进行测试,我建议您可以使用同一台计算机检查
,如果问题持续存在或没有网络连接。
As far as I know, it doesn’t need network connection because you have created a package source pointing to the folder containing those 50 packages. In your case, you used two computers to test it, I recommend you could the same computer to check if the issue persists with or without network connection.
最好的问候,
Joyce
这篇关于脱机时使用Package Manager nuget的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!