Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
080fdbba
Commit
080fdbba
authored
Jan 21, 2021
by
Suzanne Selhorn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added endpoint and duplicate info
Related to:
https://gitlab.com/gitlab-org/gitlab/-/issues/289940
parent
50fb21a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
doc/user/packages/nuget_repository/index.md
doc/user/packages/nuget_repository/index.md
+26
-0
No files found.
doc/user/packages/nuget_repository/index.md
View file @
080fdbba
...
...
@@ -106,6 +106,9 @@ You can now add a new source to NuGet with:
#### Project-level endpoint
A project-level endpoint is required to publish NuGet packages to the Package Registry.
A project-level endpoint is also required to install NuGet packages from a project.
To use the
[
project-level
](
#use-the-gitlab-endpoint-for-nuget-packages
)
NuGet endpoint, add the Package Registry as a source with
`nuget`
:
```
shell
...
...
@@ -122,6 +125,8 @@ nuget source Add -Name "GitLab" -Source "https://gitlab.example.com/api/v4/proje
#### Group-level endpoint
To install a NuGet package from a group, use a group-level endpoint.
To use the
[
group-level
](
#use-the-gitlab-endpoint-for-nuget-packages
)
NuGet endpoint, add the Package Registry as a source with
`nuget`
:
```
shell
...
...
@@ -140,6 +145,9 @@ nuget source Add -Name "GitLab" -Source "https://gitlab.example.com/api/v4/group
#### Project-level endpoint
A project-level endpoint is required to publish NuGet packages to the Package Registry.
A project-level endpoint is also required to install NuGet packages from a project.
To use the
[
project-level
](
#use-the-gitlab-endpoint-for-nuget-packages
)
NuGet endpoint, add the Package Registry as a source with Visual Studio:
1.
Open
[
Visual Studio
](
https://visualstudio.microsoft.com/vs/
)
.
...
...
@@ -167,6 +175,8 @@ If you get a warning, ensure that the **Location**, **Username**, and
#### Group-level endpoint
To install a package from a group, use a group-level endpoint.
To use the
[
group-level
](
#use-the-gitlab-endpoint-for-nuget-packages
)
NuGet endpoint, add the Package Registry as a source with Visual Studio:
1.
Open
[
Visual Studio
](
https://visualstudio.microsoft.com/vs/
)
.
...
...
@@ -196,6 +206,9 @@ If you get a warning, ensure that the **Location**, **Username**, and
#### Project-level endpoint
A project-level endpoint is required to publish NuGet packages to the Package Registry.
A project-level endpoint is also required to install NuGet packages from a project.
To use the
[
project-level
](
#use-the-gitlab-endpoint-for-nuget-packages
)
Package Registry as a source for .NET:
1.
In the root of your project, create a file named
`nuget.config`
.
...
...
@@ -219,6 +232,8 @@ To use the [project-level](#use-the-gitlab-endpoint-for-nuget-packages) Package
#### Group-level endpoint
To install a package from a group, use a group-level endpoint.
To use the
[
group-level
](
#use-the-gitlab-endpoint-for-nuget-packages
)
Package Registry as a source for .NET:
1.
In the root of your project, create a file named
`nuget.config`
.
...
...
@@ -326,8 +341,19 @@ updated:
1.
Commit the changes and push it to your GitLab repository to trigger a new CI/CD build.
### Publishing a package with the same name or version
When you publish a package with the same name or version as an existing package,
the existing package is overwritten.
## Install packages
To install a NuGet package from the Package Registry, you must first
[
add a project-level or group-level endpoint
](
#add-the-package-registry-as-a-source-for-nuget-packages
)
.
If multiple packages have the same name and version, when you install
a package, the most recently-published package is retrieved.
### Install a package with the NuGet CLI
WARNING:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment