Local NuGet Package: Add SDK to C# Visual Studio project using NuGet package manager
1. Download/Copy the NuGet package (*.nupkg) to some local directory on your PC.
2. Create a MS Visual Studio project.
a. Add “using” statements for library at top of C# code files.
e.g. “using AutoId.Sdk.Comm;”
3. Once project is created, add the NuGet package to MS Visual Studio Project
a. Open your Visual Studio project.
b. Click Project/Manage NuGet Packages... menu
Or, right click on project in the Solutions Explorer pane and select Manage NuGet Packages...
c. Add your local reference in Visual Studio to the directory where your nuget package (*.nupkg) is located:
i. By default, Visual Studio tries to use nuget.org as the “source” of nuget packages. We need to add a local source by clicking on “gear” on upper right of the Nuget Package Manager.
ii. Once the “Options” window of the Nuget Package Manager shows up, use the “+” button to add your local directory where your nuget packages are located by giving the location a “Name” and “Source” (directory or URL).
4. Select your nuget package from the local directory that was added above from the drop down list. If the package does not show up, make sure to use the “Include prerelease” checkbox
5. Install your package by selecting the package name and using the “Install” button.
6. Once package is installed, all squiggle lines (errors) that show missing library should disappear and Visual Studio “intellisense” auto completion should work for library class methods/properties.
7. Confirm SDK NuGet package added to project
On Visual Studio Solution Explorer (right pane of Visual Studio)
SDK items added should appear on Solution Explorer/<projectName>/Dependencies/Packages/