Skip to content

Commit 0a6b128

Browse files
Merge pull request #224904 from pauljewellmsft/pauljewell-dotnet-qs
Add guidance for package source
2 parents 7e6570b + 17c2bd1 commit 0a6b128

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

articles/storage/blobs/storage-quickstart-blobs-dotnet.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,28 @@ To interact with Azure Blob Storage, install the Azure Blob Storage client libra
8181

8282
### [.NET CLI](#tab/net-cli)
8383

84+
Use the following command to install the `Azure.Storage.Blobs` package:
85+
8486
```dotnetcli
8587
dotnet add package Azure.Storage.Blobs
8688
```
8789

90+
If this command to add the package fails, follow these steps:
91+
92+
- Make sure that `nuget.org` is added as a package source. You can list the package sources using the [dotnet nuget list source](/dotnet/core/tools/dotnet-nuget-list-source#examples) command:
93+
94+
```dotnetcli
95+
dotnet nuget list source
96+
```
97+
98+
- If you don't see `nuget.org` in the list, you can add it using the [dotnet nuget add source](/dotnet/core/tools/dotnet-nuget-add-source#examples) command:
99+
100+
```dotnetcli
101+
dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org
102+
```
103+
104+
Now that the package source is updated, run the command to install the package.
105+
88106
---
89107
90108
### Set up the app code

0 commit comments

Comments
 (0)