- Notifications
You must be signed in to change notification settings - Fork7.7k
Closed
Labels
Description
transferred fromdotnet/aspnetcore#25844
When using the preview of AspNetCore Blazor WebAssembly and attempting to utilize the Microsoft.PowerShell.SDK package, Blazor WebAssembly is unable to load the System.Management.Automation.dll
Steps to reproduce
- Create new Blazor WASM project. (net5-preview.7)
- Update project file according tothis guide.
- Add
Microsoft.PowerShell.SDK
package reference - Do something with a
PowerShell
hostExample repo
Expected behavior
it works
Actual behavior
Exceptions:
Could not load file or assembly 'System.Management.Automation, Version=7.0.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
Environment data
- PowerShell 7.0.3
- AspNetCore Blazor WebAssembly 5.0 Preview 7