This error comes up when trying to perform initial add-migration on a sql database in Visual Studio 2022. However when I check the Dll path it is there. My computer is a Macbook and I do Windows virtualization to run VS 2022 and the operating system is Arm 64 bit.
Failed to load the dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.16\hostpolicy.dll], HRESULT: 0x800700C1 An error occurred while loading required library hostpolicy.dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.16]
How can I solve this?