PowerShell / PSDesiredStateConfiguration

Source for https://www.powershellgallery.com/packages/PSDesiredStateConfiguration module
MIT License
58 stars 14 forks source link

CmdletsToExports causes Get-DscResource to not return resources #101

Open ThomasNieto opened 1 year ago

ThomasNieto commented 1 year ago

Prerequisites

Steps to reproduce

I am using the NewFile example on the docs to test this. If the module manifest has CmdletsToExport key defined then Get-DscResource will not return any resources for that module.

Expected behavior

# Resources returned

Actual behavior

# No resources are returned

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.3.3
PSEdition                      Core
GitCommitId                    7.3.3
OS                             Microsoft Windows 10.0.19044
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

3.0.0-beta1

Visuals

No response

gaelcolas commented 1 year ago

To concur with @ThomasNieto, here are some tests I've made: image

I know it's a known issue because I remember the workaround was mentioned to the config team a year or two ago... I can't find trace of an issue though (thanks @ThomasNieto).