Closed anmenaga closed 5 months ago
This design will allow class based resources implementing
export
to still work with DSC v2, right?
Yes.
v2 should just ignore the new
export
method?
Correct.
Ideally we should have a test to ensure we aren't breaking compat.
We already test that implicitly. We are using v2 throughout PowerShellGroup resource tests.
PR Summary
Fix #183
2 updates: 1) Adds
Export
support for provider-based resources. It is done usingexport
node in*.dsc.resource.json
file similar toget/set/test
. 2) AddsExport
support to class-based PS resources. To support this a DscResource class has to implement a staticExport
function like so: