Hi I got an environment where Nuget is closed(cant use Nuget or download new packages), so I thought about downloading the Nuget package on my other computer and just mail it over to the other computer. So I was wondering how I could do this. zip package --> email --> open in new environment ass a DLL.
Asked
Active
Viewed 400 times
0
-
A nuget package is a zip file already so you can rename it and send it and then rename it back. – Luke Briner Dec 03 '21 at 12:03
-
ah okey, do you know how/where i can extract it from ? how to get it over to my email – Beefybanana Dec 03 '21 at 12:08
-
Build the same project locally and depending on how nuget is setup, you will find the packages under the "packages" folder in the solution directory or in the nuget cache of the current user. – Luke Briner Dec 03 '21 at 12:10
-
Or create an empty project that references whatever nugets you want if that is quicker. – Luke Briner Dec 03 '21 at 12:10
-
Windows: %userprofile%\.nuget\packages. ah found them at this directory – Beefybanana Dec 03 '21 at 12:55
-
when i drop the nuget package in the package folder, it still cant use it. do i need to install it in some way with the cli ? – Beefybanana Dec 03 '21 at 14:29
-
The project should already have a reference to it with a path to packages. If you open the csproj in a text editor, you should find where it is being looked for to make sure the path is correct. – Luke Briner Dec 03 '21 at 14:54
-
in csproj the only xml code is '
-
Whatever environment you are on, you can set up and use your own NuGet feeds, https://learn.microsoft.com/en-us/nuget/hosting-packages/local-feeds Sometimes it can be a shared folder, or even a USB drive. – Lex Li Dec 03 '21 at 15:58
-
It's a duplicate. Here is a comprehensive answer to your question https://stackoverflow.com/questions/8120289/is-there-a-way-to-download-packages-from-nuget-org-then-do-an-offline-installati – Yevhen Cherkes Dec 04 '21 at 21:16