Referencing System.Management.Automation in .NET Core / VS Code #2284
Labels
Area-Maintainers-Build
specific to affecting the build
Issue-Question
ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a
What's the correct way to reference System.Management.Automation? E.g., this snippet from project.json:
Works when you run dotnet restore in that it finds and claims to install the System.Management.Automation dependency (noting that .17515 isn't compatible with .NET Core). But you can't simply add a using in the code, or it says:
The intent here is to programmatically instantiate PowerShell in the code, but .NET Core is a bit restrictive in how it wants references handled...
The text was updated successfully, but these errors were encountered: