Why use NuGet over installing libraries directly on my machine

后端 未结 4 1183
长发绾君心
长发绾君心 2020-12-25 10:15

I don\'t get it - can someone please explain to me why I should use NuGet rather than installing a bunch of libraries via a setup.exe or MSI? What advantage is there?

<
4条回答
  •  星月不相逢
    2020-12-25 11:04

    What advantage is there?

    Nuget simplifies third libraries incorporation : With a single command line (Install-Package EntityFramework) you make your package available for your project. Instead of googling-find the package-download-setup-reference the package in your project...

    Auto-Update is not mandatory, Nuget configuration file let you specify the version, or the range of version, that your application is compatible with.

    Also, if I install entity framework via Nuget then is it available to any new solutions or projects that I create

    Once you installed a package, dlls are copied in a directory at solution level, you can then reference them from there in others projects of your solution.

    For each new solutions, re-installing packages is a better solution. As it is very easy with nuget, it won't be a problem.

提交回复
热议问题