3

How should one add the PowerShell package as a Native dependency? In spite of adding it one is unable to run basic PowerShell commands to show output on the screen. PFB REPL link.

https://blazorrepl.telerik.com/GQacljYn3647KP3G59

The HTML and C# Hello World are working. However, the PowerShell Hello World doesn’t work.

PowerShell 'Hello World' not working

Expecting the REPL link and or a screenshot of PowerShell Hello World on the browser, in the answer.

Ayan Mullick
  • 67
  • 2
  • 11
  • 38
  • 3
    Probably there is no way, as Powershell is *less native* than C# for .NET applications. Thus you might be better to add Powershell package as a software-based dependency, then call powershell executable supplying it scripts via command line or parameters. – Vesper Feb 25 '22 at 06:13
  • @Vesper, It's probably [just a specific DLL failing to load](https://github.com/PowerShell/PowerShell/issues/13755). See [demo for PS7 running on a browser](https://fmichaleczek.github.io/PowerShellLab/). Could you share a REPL link for running `Write-Output`? – Ayan Mullick Feb 25 '22 at 15:32

0 Answers0