xDSCResourceDesigner
xDSCResourceDesigner copied to clipboard
Update-xDscResource Command Ignores Next-to-Last Line of Resource File
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 Thanks for submitting the issue to here.