Mount a local package manager (Nuget)

Asked

Viewed 620 times

4

Due to a huge problem that happens here in the company, such as package dependencies, so the company decided to create a NuGet private, which runs locally. The purpose of this is when anyone downloads the source code of our apps, they already miss some DLL and goes in the directory of Nuget and already does the installation or suggests the installation of DLL. The problem is that I don’t even know where to start. Someone has already done this?

  • You want to mount the private server, the packages, or you want to know about both?

  • 1

    To mount the private repository just follow these steps. https://docs.nuget.org/create/hosting-your-own-nuget-feeds

  • @Ciganomorrisonmendez, exactly that. Leandro Angelo passed me a link that vpou take a look and see if it meets, but open to suggestions.

  • 1

    Exactly what? Building packages, hosting a feed or both?

  • @Ciganomorrisonmendez, then it would be both, but what is being asked is something smarter, that is, it detect the need for that dependency and install the package.

1 answer

4


If you are going to use only internal, I recommend that you create a folder for the packages, do not use a nuget server, we had many problems in the company with this.

  1. You must create the packages : the command would nuget.exe pack folder project.nuspec -Outputdirectory c: nuget packages.
  2. Copy the generated files to a network directory that everyone has access to.
  3. Set up Visualstudio to read this directory. (TOOLS > Nuget Packege Manager > Packege Maneger Settins > Sign in to Packege Manager > Package Sources. at the bottom, enter the name and source, which is the path of your server and click ok)
  4. Ready, now you can install your packages. Remember that everyone in the company, must configure Visualstudio, to point to this network folder.
  • Srlopes, okay, but is there any way that I can download a project and this project realize that it has a dependency and download from the local Nuget references, or at least report? What we want is to automate to the maximum.

  • Dependencies are mounted on the package, if you create a package, you can tie your other package. Something like: ; <dependencies> <dependency id="Routedebugger" version="1.0.0" /> </dependencies>

  • I put it together and it’s working, but I’d like to give it more intelligence, but what I want is something more utopian, I don’t think it’s possible.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.