mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-24 10:23:26 +08:00
Exclude Microsoft.WSMan.Management from the list of default snapins
Fix #1180
This commit is contained in:
parent
9eda67b00c
commit
e647549d0d
@ -156,7 +156,7 @@ function Start-PSBuild {
|
||||
|
||||
# handle xaml files
|
||||
# Heuristic to resolve xaml on the fresh machine
|
||||
if ($FullCLR -and ($XamlGen -or -not (Test-Path "$PSScriptRoot/src/Microsoft.PowerShell.Activities/gen/*.g.resources")))
|
||||
if ($FullCLR -and ($XamlGen -or -not (Test-Path "$PSScriptRoot/src/Microsoft.PowerShell.Activities/gen/*.g.cs")))
|
||||
{
|
||||
log "Run XamlGen (generating .g.cs and .resources for .xaml files)"
|
||||
Start-XamlGen -MSBuildConfiguration $msbuildConfiguration
|
||||
|
@ -1409,7 +1409,7 @@ namespace System.Management.Automation
|
||||
"SecurityMshSnapInResources,Description","SecurityMshSnapInResources,Vendor")
|
||||
};
|
||||
|
||||
#if !LINUX
|
||||
#if !PORTABLE
|
||||
if (!Utils.IsWinPEHost())
|
||||
{
|
||||
defaultMshSnapins.Add(new DefaultPSSnapInInformation("Microsoft.WSMan.Management", "Microsoft.WSMan.Management", null,
|
||||
|
7
test/powershell/engine/BasicEngine.Tests.ps1
Normal file
7
test/powershell/engine/BasicEngine.Tests.ps1
Normal file
@ -0,0 +1,7 @@
|
||||
Describe 'Basic engine APIs' {
|
||||
Context 'powershell::Create' {
|
||||
It 'can create default instance' {
|
||||
[powershell]::Create() | Should Not Be $null
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user