Get started learning C# with C# notebooks powered by .NET Interactive and VS Code.
533 172 33 20

Local and Authenticated NuGet source break Package Restore

The machine learning notebooks reference Microsoft.ML version 2.0.0-preview.22356.1 from a private Azure DevOps server. This preview version of the Microsoft.ML package is not available from making it hard to run the notebooks.

PackageManagement Error 3217 Invalid URI: The format of the URI could not be determined.


  1. @wldevries they’re all public feeds. It is azure dev ops but it’s a public feed of our daily builds.

    Can you share a screenshot of what you’re seeing?

    sharing the notebook would be helpful too!

  2. image
    This is what I'm seeing. Note that I'm using Notebook Editor in Visual Studio Pro 2022.

  3. That url returns a json, but most of the links in there return "The resource cannot be found."

  4. @wldevries - can you check your NuGet configs to see what other feeds are in there?

    They're usually at these locations:


  5. I have some local directories, a local server and the following official source declared:

    <add key="" value="" protocolVersion="3" />
  6. Can you try removing any local directories and servers temporarily?

    I think this is a bug on our end but I want to try to understand what the problem is.

  7. It seems having the local server in the nuget config caused the problem. Removing that and leaving the local sources in made it work.

    I also had this official source in, not sure what it does. It did not cause the issue though.

        <add key="Microsoft Visual Studio Offline Packages" value="C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\" />
  8. Thanks for trying that out and reporting back! I'll see if we can catch that better and give a better error message.