Skip to content

Commit 7801df3

Browse files
committed
Updates from PR reviewer
1 parent 9cb020b commit 7801df3

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

connected-environment/how-to/use-custom-NuGet-feed.md

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "How to use a custom NuGet feed in a connected environment| Microsoft Docs"
33
author: "johnsta"
44
ms.author: "johnsta"
5-
ms.date: "3/27/2018"
5+
ms.date: "03/27/2018"
66
ms.topic: "article"
77
description: "Use a custom NuGet feed to access and use NuGet packages in a connected environment."
88
keywords: "Docker, Kubernetes, Azure, AKS, Azure Container Service, containers"
@@ -15,30 +15,30 @@ A NuGet feed provides a convenient way to include package sources in a project.
1515
To set up a NuGet feed:
1616
1. Add a [package reference](https://docs.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files) in the `*.csproj` file under the `PackageReference` node.
1717

18-
```xml
19-
<ItemGroup>
20-
<!-- ... -->
21-
<PackageReference Include="Contoso.Utility.UsefulStuff" Version="3.6.0" />
22-
<!-- ... -->
23-
</ItemGroup>
24-
```
18+
```xml
19+
<ItemGroup>
20+
<!-- ... -->
21+
<PackageReference Include="Contoso.Utility.UsefulStuff" Version="3.6.0" />
22+
<!-- ... -->
23+
</ItemGroup>
24+
```
2525

2626
2. Create a [NuGet.Config](https://docs.microsoft.com/en-us/nuget/reference/nuget-config-file) file in the project folder.
2727
* Use the `packageSources` section to reference your NuGet feed location. Important: The NuGet feed must be publicly accessible.
2828
* Use the `packageSourceCredentials` section to configure username and password credentials.
2929

30-
```xml
31-
<packageSources>
32-
<add key="Contoso" value="https://contoso.com/packages/" />
33-
</packageSources>
30+
```xml
31+
<packageSources>
32+
<add key="Contoso" value="https://contoso.com/packages/" />
33+
</packageSources>
3434

35-
<packageSourceCredentials>
36-
<Contoso>
37-
<add key="Username" value="[email protected]" />
38-
<add key="ClearTextPassword" value="33f!!lloppa" />
39-
</Contoso>
40-
</packageSourceCredentials>
41-
```
35+
<packageSourceCredentials>
36+
<Contoso>
37+
<add key="Username" value="[email protected]" />
38+
<add key="ClearTextPassword" value="33f!!lloppa" />
39+
</Contoso>
40+
</packageSourceCredentials>
41+
```
4242

4343
3. If you're using source code control:
4444
- Reference `NuGet.Config` in your `.gitignore` file so you don't accidentally commit credentials to your source repository.
@@ -52,5 +52,7 @@ To set up a NuGet feed:
5252
```
5353
5454
55+
## Next steps
56+
5557
Once you have completed the above steps, the next time you run `vsce up` (or hit `F5` in VSCode or Visual Studio), Connected Environment will synchronize the `NuGet.Config` file to Azure, which is then utilized by `dotnet restore` to install package dependencies in the container.
5658

0 commit comments

Comments
 (0)