Skip to content

Ensure DSC Composite Resource PSD1 does not export Function #36

Open

Description

@gaelcolas

When the PSD1 of a Composite Resource is created with New-ModuleManifest, it creates the line:

FunctionsToExport = @()

Which makes the DSC Resource invalid:
Get-DscResource -Name <resourceName> throws.

It'd be good to catch this early in a pester test.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions