System.Management.Automation.Platform.SelectProductNameForDirectory(XDG_Type dirpath) in /PowerShell/src/System.Management.Automation/CorePsPlatform.cs:line 343
at System.Management.Automation.Platform..cctor() in /PowerShell/src/System.Management.A
我正在尝试创建一个.net标准2.0库,它使用PowerShell类(System.Management.Automation)调用PowerShell命令和脚本。我已经尝试在.Net标准项目中使用Microsoft.PowerShell.SDK和System.Management.Automation NuGet包,但一直收到以下错误: System.IO.FileLoadExceptionHResult=0x80131040
Message=Could not load file or assembly'System.Manageme
我已经编辑了csproj文件以包含System.Management.Automation <Reference Include="System.Management.AutomationPowershell版本2的远程Windows 7计算机上运行时,该程序会引发异常
System.IO.FileNotFoundException: Could not load file or assembly 'System.Management.Automation它找不到Sys