07-21-2023, 06:08 PM
All of a sudden, I am getting this error when upgrading Nuget packages. None of the fixes that I have come across work. I am using Visual Studio 2013.
> 'Newtonsoft.Json 6.0.3' already installed.
>
> Adding 'Newtonsoft.Json 6.0.3' to Tournaments.Notifications.
>
> Successfully added 'Newtonsoft.Json 6.0.3' to Tournaments.Notifications.
>
> Executing script file 'F:\My Webs\BasketballTournaments\MainBranch\packages\Newtonsoft.Json.6.0.3\tools\install.ps1'.
>
> Failed to initialize the PowerShell host. If your PowerShell execution policy setting is set to AllSigned, open the Package Manager Console to initialize the host first.
**Package Manager Console**
> Attempting to perform the InitializeDefaultDrives operation on the 'FileSystem' provider failed.
If I wait for the initialization to finish in the console I was able to add some packages.
> 'Newtonsoft.Json 6.0.3' already installed.
>
> Adding 'Newtonsoft.Json 6.0.3' to Tournaments.Notifications.
>
> Successfully added 'Newtonsoft.Json 6.0.3' to Tournaments.Notifications.
>
> Executing script file 'F:\My Webs\BasketballTournaments\MainBranch\packages\Newtonsoft.Json.6.0.3\tools\install.ps1'.
>
> Failed to initialize the PowerShell host. If your PowerShell execution policy setting is set to AllSigned, open the Package Manager Console to initialize the host first.
**Package Manager Console**
> Attempting to perform the InitializeDefaultDrives operation on the 'FileSystem' provider failed.
If I wait for the initialization to finish in the console I was able to add some packages.