How to add powershell.exe to docker container

27 Views Asked by At

I'm trying to package my .NET 6 application in a docker container, but one of the libraries uses powershell.exe. I'm guessing I need to somehow add it to my container. How can this be done correctly?

Error: error : /bin/sh: 2: /tmp/MSBuildTemproot/tmp7b4769144a3d4df6955a68433d00190b.exec.cmd: powershell.exe: not found

I have tried adding various commands to my dockerfile. But the problem was never solved.

0

There are 0 best solutions below