Open GamingMinds-UlfW opened 11 months ago
Hi @GamingMinds-UlfW. Powershell scripts were added recently. Although it would be nice if it could work out of the box on Windows, we choose the latest version of Powershell (pwsh) because of its multi-platforms support. Keep in mind that Sharpmake can also be run on Linux and Mac environments.
That being said. If you think these scripts can be changed in a way that they could be used on both version of Powershell you can open a pull request.
Compile.ps1
(and all other scripts which useJoin-Path
e.g.RunSharpmake.ps1
) do not work on the Windows platform (for me Windows 10 x64 22H2) with the default Powershell (5.1 Desktop).The error output is something like this (this is just a sample using no parameters, when using seemingly correct parameter values the output is the same):
The error occurs in line 202, due to
Join-Path
only accepting two arguments. Maybe I need to use a different powershell version, but I think the scripts should work with the default Powershell shipped with the OS.