From 1e85a1793e292d7666d20d3113ef34d955bedaef Mon Sep 17 00:00:00 2001 From: david schimmel <david.schimmel@gmx.de> Date: Fri, 22 Mar 2019 09:53:27 +0100 Subject: [PATCH] Docs: Add NuGet local workflow --- docs/home.md | 4 +++- docs/nuget.md | 25 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 docs/nuget.md diff --git a/docs/home.md b/docs/home.md index 65e247d..5fc465f 100644 --- a/docs/home.md +++ b/docs/home.md @@ -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 diff --git a/docs/nuget.md b/docs/nuget.md new file mode 100644 index 0000000..4e038a1 --- /dev/null +++ b/docs/nuget.md @@ -0,0 +1,25 @@ +# 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 -- GitLab