I suspect there's an issue with the metadata of the dll I copied to the offline machine. I repeated this process for version 2.8.5.208 and 2.8.5.205 (both failed). Notice that there are no DynamicOptions for NuGet. Programs 3.0.0.0 IncludeWindowsInstaller, IncludeSystemComponent PowerShellGet 1.0.0.1 PackageManagementProvider, Type, Scope, AllowClobber, SkipPublisherCheck. PS C:\Windows\system32> Get-PackageProvider -ListAvailable Here's what the output of Get-PackageProvider looks like: Any attempt to install nupkg packages failed. I launched PowerShell as an admin and saw that NuGet 2.8.5.208 was installed but has no DynamicOptions.On the offline computer I created a C:\Program Files\PackageManagement\ProviderAssemblies\nuget\2.8.5.208 folder and placed the dll from step 2 into this folder.I checked the hash of both dll's and they matched.On a personal computer (with admin rights) I downloaded NuGet the normal way and got the dll installed in C:\Program Files\PackageManagement\ProviderAssemblies\nuget\2.8.5.208\.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |