xDSCResourceDesigner icon indicating copy to clipboard operation
xDSCResourceDesigner copied to clipboard

Update-xDscResource Command Ignores Next-to-Last Line of Resource File

Open Rob-S opened this issue 6 years ago • 1 comments

The Update-xDscResource command seems to ignore the next-to-last line of the Resource .psm1 file that it's updating. For example, just as a demonstration, change the "*" in the Export-ModuleMember line to an "X", so the line reads "Export-ModuleMember -Function X-TargetResource". If there is a single blank line following that line, the Update-xDscResource command still works fine (although you would expect it to fail). However, if you add a second blank line at the end of the file, it fails as expected. This is when using version 1.13 of xDSCResourceDesigner.

Issue created by request from Johan Ljunggren.

Rob-S avatar Jan 11 '20 07:01 Rob-S

@Rob-S Thanks for submitting the issue to here.

johlju avatar Jan 14 '20 18:01 johlju