Packaging the C# custom DSC resource

As stated earlier, the conventions are the same with C# custom DSC resources as MOF-based custom DSC resources, and that applies to the folder structure as well. The only thing actually different is that you put the DLL in place of the .psm1 file:

powershell
$env:ProgramFilesWindowsPowerShellModules
|- xExampleThingDSCResource
|- xExampleThingDSCResource.psd1
|- DSCResources
|- xExampleThing
|- xExampleThing.psd1 (optional)
|- xExampleThing.dll (required)
|- xExampleThing.schema.mof (required)

Once that is done, deployment is the same as any other DSC resource described in this book.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset