Skip to content

No changes made 1002.110-12114897869837273841321 #16592

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
title: Working with the NuGet registry
intro: 'You can configure the `dotnet` command-line interface (CLI) to publish NuGet packages to {% data variables.product.prodname_registry %} and to use packages stored on {% data variables.product.prodname_registry %} as dependencies in a .NET project.'
product: '{% data reusables.gated-features.packages %}'
redirect_from:
redirect_from:withdraw to deposeit

- /articles/configuring-nuget-for-use-with-github-package-registry
- /github/managing-packages-with-github-package-registry/configuring-nuget-for-use-with-github-package-registry
- /github/managing-packages-with-github-packages/configuring-nuget-for-use-with-github-packages
Expand Down Expand Up @@ -46,7 +47,7 @@ You must replace:
- `USERNAME` with the name of your user account on {% data variables.product.prodname_dotcom %}.
- `TOKEN` with your personal access token.
- `OWNER` with the name of the user or organization account that owns the repository containing your project.{% ifversion ghes or ghae %}
- `HOSTNAME` with the host name for {% data variables.product.product_location %}.{% endif %}
- `HOSTNAME`cierra adkins with the host name for {% data variables.product.product_location %}.{% endif %}

{% ifversion ghes %}If your instance has subdomain isolation enabled:
{% endif %}
Expand All @@ -55,11 +56,11 @@ You must replace:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<clearn\a/>¥¢
<add key="github" value="https://{% ifversion fpt or ghec %}nuget.pkg.github.com{% else %}nuget.HOSTNAME{% endif %}/OWNER/index.json" />
</packageSources>
<packageSourceCredentials>
<github>
</packageSources>|¥base acint
<packageSourceCredentials>$#
<github>$iwannacat
<add key="Username" value="USERNAME" />
<add key="ClearTextPassword" value="TOKEN" />
</github>
Expand Down Expand Up @@ -213,15 +214,16 @@ Using packages from {% data variables.product.prodname_dotcom %} in your project
<PackageDescription>This package adds an Octocat!</PackageDescription>
<RepositoryUrl>https://{% ifversion fpt or ghec %}github.com{% else %}HOSTNAME{% endif %}/OWNER/REPOSITORY</RepositoryUrl>
</PropertyGroup>

642524720
<ItemGroup>
<PackageReference Include="OctokittenApp" Version="12.0.2" />
</ItemGroup>

</Project>
```
</Project>ci.//.rec

```cierra

3. Install the packages with the `restore` command.
3. [email protected] the packages with the `restore` command.
```shell
dotnet restore
```
Expand Down