@vkatms This is because your NuGet sources include one which requires credential to access, and it blocks the entire NuGet restore process. You can either remove it from your NuGet sources temporarily or update your %appdata%\NuGet\NuGet.config file with below content:
<?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> <add key="MSAzure" value="https://msazure.pkgs.visualstudio.com/_packaging/Toolset/nuget/v3/index.json" /> </packageSources> <packageRestore> <add key="enabled" value="True" /> <add key="automatic" value="True" /> </packageRestore> <bindingRedirects> <add key="skip" value="False" /> </bindingRedirects> <packageManagement> <add key="format" value="0" /> <add key="disabled" value="False" /> </packageManagement> <packageSourceCredentials> <MSAzure> <add key="Username" value="<your email>" /> <add key="ClearTextPassword" value="<your personal access token required from https://msazure.visualstudio.com/_usersSettings/tokens>" /> </MSAzure> </packageSourceCredentials> </configuration>
I also replied you internally. :)
Hi @sympthom , have you tried vkatms' instruction? Looks like you two have similar issues.
To close the loop on the Unauthorized error. First, create Personal Access Token as described here. Then modify the correct NuGet.config file, in my case it was c:\users\<username>\NuGet.Config as described in Use dotnet with VSTS feeds
F5. Go! A new VS Code instance will open, and you could debug it.
pip install --upgrade iotedgehubdevbut build edge solution still comes back with error: Unable to load the service index for source https://api.nuget.org/v3/index.json