This fixes an issue that still exist when there is no build module manifest and the SourcePath is a folder that does not contain the module name.
Prior to this fix the build was successful if SourcePath was either c:\source\ModuleName or c:\source\ModuleName\source\ModuleName.psd1, but failed if SourcePath was c:\source\s (and the module manifest was in c:\source\s\source\ModuleName.psd1. This is solved with this PR.
This fixes an issue that still exist when there is no build module manifest and the
SourcePath
is a folder that does not contain the module name.Prior to this fix the build was successful if SourcePath was either
c:\source\ModuleName
orc:\source\ModuleName\source\ModuleName.psd1
, but failed if SourcePath wasc:\source\s
(and the module manifest was inc:\source\s\source\ModuleName.psd1
. This is solved with this PR.This change is