How to pack 2 third-party dlls

I am reading nuget's documentation and I don't quite understand how nuget works.

I have 2 third-party dlls that I was asked to turn into a nuget package so that our local developers can simply install them into the project via nuget. This will be what we will host locally.

Does this mean that I just create a project in vs and drop the dll in the project, or am I using something like a package explorer.

I apologize in advance if this is a stupid question, however I am an absolute beginner when it comes to Nuget, etc.

Any advice is appreciated.

+7
source share
2 answers

The easiest and fastest way to get the nuget package and run it is to simply launch the package explorer โ†’ create a new package โ†’ drag your DLL files into the โ€œPackage Contentsโ€ area, it will ask if you want the DLL in the โ€œlibโ€ folder, what do you do , โ†’ create some metadata about the package, that is, give it a description and version and something else, and then just save it.

After saving it, you can copy the .nupkg file to a shared folder - the file system on a centralized server is great if you have access to one, and then configure access to this "feed" (ie shared folder) in visual studio (tools -> options -> Package Manager -> Package Sources), thus:

Visual studio

If you want to host packages via http, you can follow these instructions: https://github.com/NuGet/NuGetGallery/blob/master/README.markdown .

+12
source

Another option is to use the Nuget.exe specification, the pack command, to quickly create a package. Read more here @ http://docs.nuget.org/docs/reference/command-line-reference

0
source

All Articles