对于PS7.2.1,Windows和Linux上相同的调用返回不同的结果,在Windows上,它返回了一个参数和值列表但是在Linux上它失败了,显示了以下错误:
New-PSSessionOption: A parameter cannot be found that matches parameter name '在Linux上,如果我只发出“”,w/o任何param,它将
我需要可以在Visual和Mono下编译并在Linux或Windows上运行的代码。var drive = new DriveInfo(file.Directory.Root.FullName);然而,在Linux上,这似乎会引发一个参数异常。file.Directory.Root.FullName返回'/‘。DriveInfo抛出“驱