It is related #5783
# Add-Type works
E:\PowerShell\src\powershell-win-core\bin\Debug\netcoreapp2.0\win7-x64\publish\pwsh.exe
# Add-Type doesn't work
E:\PowerShell\src\powershell-win-core\bin\Debug\netcoreapp2.0\win7-x64\pwsh.exe
One of the reasons is the lack of ref folder.
Add-Type should fail gracefully when ref folder cannot be found.
It is related #5783
One of the reasons is the lack of
reffolder.Add-Typeshould fail gracefully whenreffolder cannot be found.