System.Management.Automation库的asp.net核心1.1

问题描述:

我想在我的ASP.NET核心应用程序(.net核心应用程序1.1)中使用“System.Management.Automation”库。但我无法从nuget包管理器中添加它。任何人都可以为ASP.NET Core app 1.1建议可支持的lib版本。System.Management.Automation库的asp.net核心1.1

感谢,

+1

你看过[这里](https://github.com/PowerShell/PowerShell/issues/2284)? – Forty3

official package on nuget仅供NET4.0

有可用的myget包,但你需要到仓库(或多个)第一添加到您的nuget.config:

<add key="dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" /> 
<add key="powershell-core" value="https://powershell.myget.org/F/powershell-core/api/v3/index.json" /> 

这应该有助于解决软件包。

+0

有一个预发布版本,但这对我很有用。谢谢:) –

+0

@RamashankerTripathi在nuget描述中说:'6.1.7601。*是.net 4.0的非官方软件包' –