You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>$psversiontable
Name Value
---------
PSVersion 7.4.0
PSEdition Core
GitCommitId 7.4.0
OS Darwin 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 2021:28:58 PST 2023; root:xnu-10002.81.5~7/RELEASE_X86_64
Platform Unix
PSCompatibleVersions {1.0,2.0,3.0,4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Prerequisites
Steps to reproduce
create an assembly and run a script with the following content:
using assembly mydll.dll [mydll.mytype]Expected behavior
no errorsActual behavior
Error details
line 5136:
assemblyFileName = workingDirectory + @"\" + assemblyFileNameon a Unix System,
\is not a directory separator but a valid filename character.The fix is:
assemblyFileName = Path.Combine(workingDirectory, assemblyFileName);Environment data
Visuals
No response