Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

ASP.NET Core Template Pack in the corporate environment - Proxy Authentication Required #438

Closed
EDTInfrastructure opened this issue Nov 16, 2016 · 1 comment

Comments

@EDTInfrastructure
Copy link

EDTInfrastructure commented Nov 16, 2016

OK, 1st up apologies if this is the wrong place for this but it's where Steve Sanderson's blog (http://blog.stevensanderson.com/2016/10/04/angular2-template-for-visual-studio/) pointed to for issues on the ASP.NET Core Template Pack. I saw Steve present at MS future decoded 2016 and really wanted to try this out back in the office as a complete newbie to web development. My issue is integration of nuget/VS 2015 with this template when fetching packages like Microsoft.AspNetCore.AngularServices. I'm obviously now behind a proxy server in the corporate environment so I get "Response status code does not indicate success: 407 (Proxy Authentication Required)" for all the packages required. How would I configure this to work with the proxy server?

Solved!

  1. Started by updating my nuget version:
    nuget update self

  2. Added proxy details to the config file:
    nuget config -Set http_proxy=http://username:[email protected]:port

Magic - only thing I hate is nugget leaving my plain text password in %appdata%\NuGet\NuGet.Config

@SteveSandersonMS
Copy link
Member

Thanks for posting.

As far as I'm aware, the solution you've posted (nuget config ...) is the correct one. Glad you sorted it out!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants