Skip to content

Conversation

@SteveL-MSFT
Copy link
Member

@SteveL-MSFT SteveL-MSFT commented Nov 30, 2018

PR Summary

PSDiagnostics had outdated logic to expose cmdlets for PSCore5 where logman.exe didn't exist, but this is no longer the case with PSCore6 on full Windows. Change logic to check for existence of logman.exe in path rather than assume Core vs Desktop PowerShell. Deferring adding tests for these cmdlets as it seems we don't have any tests for PSDiagnostics module: #8367

Fix #8339

PR Checklist

Copy link
Collaborator

@iSazonov iSazonov left a comment

Choose a reason for hiding this comment

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

@SteveL-MSFT Can your team add CI for Nano/IoT/Windows 7 x32 if it is important?

@iSazonov iSazonov added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Nov 30, 2018
@SteveL-MSFT
Copy link
Member Author

@iSazonov we're working on improving our release automation which includes running tests daily on all supported distros/skus. Don't think Nano nor Win10 IoT will be there initially. I expect Win7, but not x86 initially if that's what you mean.

{
Export-ModuleMember Start-Trace, Stop-Trace, Enable-WSManTrace, Disable-WSManTrace, Enable-PSTrace, Disable-PSTrace, Enable-PSWSManCombinedTrace, Disable-PSWSManCombinedTrace, Get-LogProperties, Set-LogProperties
}
if (Get-Command logman.exe -Type Application -ErrorAction SilentlyContinue)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems a comment about Nano/IoT will be still useful.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@SteveL-MSFT Could you clarify whether this comment is needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

The comment still exists on line 446

@iSazonov iSazonov merged commit 4c24f71 into PowerShell:master Dec 5, 2018
@SteveL-MSFT SteveL-MSFT deleted the psdiagnostics-cmdlets branch December 5, 2018 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PSDiagnostics does not properly export all cmdlets in PSv6

3 participants