Skip to content

Include exported DSC resources in the module manifest fileΒ #172

@FLeven

Description

@FLeven

Describe the bug
On push to private repo

WARNING: This module 'C:\Users\fladmin\AppData\Local\Temp\1886670852\cChoco\cChoco.psd1' has exported DscResources. As 
a best practice, include exported DSC resources in the module manifest file(.psd1). If your PowerShell version is 
higher than 5.0, run Update-ModuleManifest -DscResourcesToExport to update the manifest with ExportedDscResources 
field.

To Reproduce
Steps to reproduce the behavior:

Register-PSRepository -Name pwsh -InstallationPolicy Trusted -SourceLocation https://nexus.local/repository/pwsh/ -PackageManagementProvider nuget -PublishLocation https://nexus.local/repository/pwsh/

Publish-Module -Name ".\cchoco" -Repository pwsh -NuGetApiKey "123"

Expected behavior
Clean push without warnings

Software (please complete the following information):

  • Server 2022
  • PowerShell Version 5.1
  • cChoco 2.5.0.0 / 2.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    0 - TriagingIssue is accepted, but a milestone has yet to be added for the issue.BugIssues where something has happened which was not expected or intended.Up For GrabsIssues that are available by the community to work on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions