Skip to content

Add tests for hosting Powershell #6220

@adityapatwardhan

Description

@adityapatwardhan

Add tests for hosting Powershell to validate the runtime Nuget Packages. This should be possible after #6167 is merged

Steps to reproduce

var ps = PowerShell.Create();
ps.AddScript("Get-Command Write-Host").Invoke();

Expected behavior

Output of "Get-Command Write-Host"

Actual behavior

Does not work on Non-Windows platforms.

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.0.1
PSEdition                      Core
GitCommitId                    v6.0.1
OS                             Microsoft Windows 10.0.16299
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions