gaelcolas / gaelcolas/Sampler

Sampler DSC resource DSC_Folder is generating error

Open
#78 0 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
PowerShell
Stars
243
Forks
46
Avg merge
1h 41m
Merged PRs (30d)
1

Description

Running this

```
.\build.ps1 -Tasks noop -ResolveDependency
.\build.ps1 -Tasks build
Get-DscResource
```

Generates this

```
ImportCimAndScriptKeywordsFromModule : A second CIM class definition for 'DSC_Folder' was found while processing the schema file 'C:\Users\johlju\Documents\WindowsPowerShell\Modules\Sampler\0.97.0\DSCResources\DSC_Folder\DSC_Fo lder.Schema.mof'. This class was already defined in the file(s) 'C:\source\ActiveDirectoryDsc\output\RequiredModules\Sampler\0.97.0\DSCResources\DSC_Folder\DSC_Folder.Schema.mof'. Remove the redundant definition, and then try again. At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\PSDesiredStateConfiguration.psm1:4143 char:29 + ... $null = ImportCimAndScriptKeywordsFromModule -Module $mod -Resour ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], PSInvalidOperationException + FullyQualifiedErrorId : System.Management.Automation.PSInvalidOperationException,ImportCimAndScriptKeywordsFromM odule
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.