From 6e3390b993c8b44f3910672c4bf18b648a02c329 Mon Sep 17 00:00:00 2001 From: Dan Marshall Date: Wed, 29 Mar 2023 17:15:59 -0700 Subject: [PATCH 1/3] add nuget sources troubleshooting --- samples/notebooks/dotnet/README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/samples/notebooks/dotnet/README.md b/samples/notebooks/dotnet/README.md index 57e8c070e279..ba42592f80ca 100644 --- a/samples/notebooks/dotnet/README.md +++ b/samples/notebooks/dotnet/README.md @@ -85,7 +85,18 @@ Enter the notebooks folder, and run this to launch the browser interface: # Troubleshooting -If you are unable to get the Nuget package, run one of the `force-nuget-download` scripts for your machine. +## Nuget + +If you are unable to get the Nuget package, first list your nuget sources: +```sh +dotnet nuget list source +``` +If you see `No sources found.`, add the NuGet official package source: +```sh +dotnet nuget add source "https://api.nuget.org/v3/index.json" --name "nuget.org" +``` + +## Polyglot Notebooks If somehow the notebooks don't work, run these commands: From 5620c003f5f1a9d6f02155d7d98d80b3c66435db Mon Sep 17 00:00:00 2001 From: Dan Marshall Date: Wed, 29 Mar 2023 17:27:14 -0700 Subject: [PATCH 2/3] add verification step --- samples/notebooks/dotnet/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/notebooks/dotnet/README.md b/samples/notebooks/dotnet/README.md index ba42592f80ca..dda47ec8105c 100644 --- a/samples/notebooks/dotnet/README.md +++ b/samples/notebooks/dotnet/README.md @@ -95,6 +95,7 @@ If you see `No sources found.`, add the NuGet official package source: ```sh dotnet nuget add source "https://api.nuget.org/v3/index.json" --name "nuget.org" ``` +Run `dotnet nuget list source` again to verify the source was added. ## Polyglot Notebooks From d6f9d85bc1838ec8a7f4651873f0561cf2279abe Mon Sep 17 00:00:00 2001 From: Dan Marshall Date: Wed, 29 Mar 2023 17:38:35 -0700 Subject: [PATCH 3/3] capitalize Nuget --- samples/notebooks/dotnet/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/notebooks/dotnet/README.md b/samples/notebooks/dotnet/README.md index dda47ec8105c..5552687b7cf0 100644 --- a/samples/notebooks/dotnet/README.md +++ b/samples/notebooks/dotnet/README.md @@ -87,7 +87,7 @@ Enter the notebooks folder, and run this to launch the browser interface: ## Nuget -If you are unable to get the Nuget package, first list your nuget sources: +If you are unable to get the Nuget package, first list your Nuget sources: ```sh dotnet nuget list source ```