Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuget tries internet even though only local package repository #6504

Closed
erict-powersoft opened this issue Jan 30, 2018 · 8 comments

Comments

@erict-powersoft
Copy link

@erict-powersoft erict-powersoft commented Jan 30, 2018

Details about Problem

Computer is on a network that cannot be connected to the internet. When browsing for local package sources, VS hangs until internet timeout even though nuget.org package source not enabled.

NuGet product used (NuGet.exe | VS UI | Package Manager Console | dotnet.exe):

NuGet version (x.x.x.xxx): v3.6.0

dotnet.exe --version (if appropriate):

VS version (if appropriate): VS2015 SP3 (14.0.25420.01)

OS version (i.e. win10 v1607 (14393.321)): Windows 7 SP1 - not up to date - classified computer
PowerShell: 2.0

Worked before? If so, with which NuGet version:

Detailed repro steps so we can see the same problem

  1. Set up local package source and verify that it works, and uncheck 'https://www.nuget.org/api/...' source

  2. Disconnect your computer from the network

  3. Open NuGet Package Manager, click on Browse.

  4. Observe that VS2015 not responding for about 40 seconds. Presumably until internet timeout.
    ...

Other suggested things

Verbose Logs

Please include verbose logs (NuGet.exe -verbosity detailed | dotnet.exe --verbosity diag | etc...)

Sample Project

Very helpful if you can zip a project and paste into this issue!

@erict-powersoft

This comment has been minimized.

Copy link
Author

@erict-powersoft erict-powersoft commented Jan 30, 2018

Note that in our case, we are on a network (which is different than the recreate steps). But our network does not have access to the internet.

@emgarten

This comment has been minimized.

Copy link
Member

@emgarten emgarten commented Feb 1, 2018

This could be due to NuGet trying to load icons from http urls.

@rohit21agrawal

This comment has been minimized.

Copy link
Contributor

@rohit21agrawal rohit21agrawal commented Feb 2, 2018

@erict-powersoft do you also see this issue in VS2017?

@StingyJack

This comment has been minimized.

Copy link
Contributor

@StingyJack StingyJack commented Feb 15, 2018

If you have any package references in your project (like the ones that can come as part of a web templates) that were sourced from nuget.org, this can also happen.

Can fiddler or another http trace be used on your workstation to see if VS is attempting to contact any internet sites?

@erict-powersoft

This comment has been minimized.

Copy link
Author

@erict-powersoft erict-powersoft commented Feb 15, 2018

@chadAtGA

This comment has been minimized.

Copy link

@chadAtGA chadAtGA commented Feb 14, 2019

I have this exact problem in my offline scenario. Please give us a way to either stop requesting icons and have them be part of the package. I'm using VS 2017 15.9.1. I used Fiddler and saw it requesting Host www.castleproject.org Url /img/castle-logo.png among others but you get the point.

@rrelyea

This comment has been minimized.

Copy link
Contributor

@rrelyea rrelyea commented Sep 9, 2019

We've released 5.3-preview3 with a warning for the old icon technique...and ask package authors to use a new embedded icon. This is the start of the move to embedded icons.
@karann-msft

@rrelyea

This comment has been minimized.

Copy link
Contributor

@rrelyea rrelyea commented Nov 29, 2019

going to close this issue.
if you find NuGet accessing sources when they shouldn't, please open an issue with full details.

Following up on my 9/19/2019 comment: as for, icons, nuget.org feed in search tab no longer hits the URLs. And people will be evolving packages forward to fix it. That is being addressed as part of that investment.

@rrelyea rrelyea closed this Nov 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.