Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ private static IList<DefaultPSSnapInInformation> DefaultMshSnapins
"SecurityMshSnapInResources,Description","SecurityMshSnapInResources,Vendor")
};

#if !LINUX
#if !PORTABLE
if (!Utils.IsWinPEHost())
{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this? WSMan.Management should be available through the NuGet package on Windows.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And even if it's not, we should load the one installed with Windows, right?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Talked with Sergei, we're going to figure this out properly later, and merge to unblock several people.

defaultMshSnapins.Add(new DefaultPSSnapInInformation("Microsoft.WSMan.Management", "Microsoft.WSMan.Management", null,
Expand Down
7 changes: 7 additions & 0 deletions test/powershell/engine/BasicEngine.Tests.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Describe 'Basic engine APIs' {
Context 'powershell::Create' {
It 'can create default instance' {
[powershell]::Create() | Should Not Be $null
}
}
}