I’m using PowerShell Tools for VS 2022. I sometimes test my scripts from within Visual Studio and I’m using Read-host for confirmations and collecting other parameters.
Read-host is throwing the error below. For my web and console applications I would normally just use NuGet to add the package. How do I get this assembly loaded in my PowerShell solution?
[ERROR] Read-Host : Could not load file or assembly ‘Nito.AsyncEx.Context,
[ERROR] Version=126.96.36.199, Culture=neutral, PublicKeyToken=null’ or one of its
[ERROR] dependencies. A strongly-named assembly is required. (Exception from HRESULT: