Skip to content
Snippets Groups Projects
Commit 1e85a179 authored by David Schimmel's avatar David Schimmel
Browse files

Docs: Add NuGet local workflow

parent c9b2841e
No related branches found
No related tags found
No related merge requests found
Pipeline #113265 passed
......@@ -2,4 +2,6 @@
See [ESLint Convention](ESLintConvention) for our commit message convention.
See [Local NPM workflow](npm) for our recommendation on how to work with local NPM packages.
\ No newline at end of file
See [Local NPM workflow](npm) for our recommendation on how to work with local NPM packages.
See [Local NuGet workflow](nuget) for our recommendtation on how to work with local NuGet packages.
\ No newline at end of file
# Local NuGet Workflow Guide
To include local NuGet packages, you need to download and install (and set the path variable) for NuGet.
Get it from here: [nuget.org/downloads](https://www.nuget.org/downloads)
## Usage
For more detailed instructions see: [medium.com/@churi.vibhav/creating-and-using-a-local-nuget-package-repository](https://medium.com/@churi.vibhav/creating-and-using-a-local-nuget-package-repository-9f19475d6af8)
The basic steps are:
1. Go to the location of your NuGet package and add it to your local NuGet repository:
```
>nuget add <package_id>.nupkg -source <source_path>\<nuget_repo_name>
```
You can navigate to the source path (<source_path>\\<nuget_repo_name>) and call
```
>tree
```
and you should see the added package in the repository tree.
2. To import the local package, open the project that you want to include the package in Visual Studio.
3. In the solution explorer, right click the solution => click "manage NuGet packages for solution..."
4. Click settings (little gear icon near "Manage Packages for Solution" in the top right corner).
5. Add the local package (click "+", set the source path to the local package).
6. Move the local package you just added above the nuget.org path to give it higher priority.
7. Now you should be able to find, install and use the local package like any other nuget package.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment