-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Issue
I started this as a suggestion for improvement but after many tests, it's more of bug.
Based on the output of Invoke-MTBuild -Verbose
VERBOSE: Running dist folder reset
VERBOSE: Buidling module psm1 file
VERBOSE: Running Schema test against using Build schema
VERBOSE: Building psd1 data file Manifest
WARNING: Unknown parameter ProjecUri in Manifest
VERBOSE: Files found in resource folder, Copying resource folder content
"Files found in resource folder, Copying resource folder content" would indicate that the content of the resources folder should be copied and not the folder itself.
What happens is the entire resource folder is being copied as a subfolder in .\dist<myModuleName>.
Suggestion for improvement
The role of the resources can be greatly improved by copying the content to the resources folder instead of the entire resources folder and it's content. This way you can have files and subfolders added to the .\dist<myModuleName> folder without then needing to reside in a .\dist<myModuleName>\resource folder.
Example 1:
If you do need to have a resources folder in the dist folder then create:
.\src\resources\resources
Which would result in
.\dist<myModuleName>\resource
Example 2:
.\src\resources
.\src\resources\about_.help.txt
current behavior Result:
.\dist<myModuleName>\resources
.\dist<myModuleName>\resources\about_.help.txt
Desired Result:
.\dist<myModuleName>
.\dist<myModuleName>\about_.help.txt
Example 3:
.\src\resources
.\src\resources\en-US
.\src\resources\en-US\about_.help.txt
Desired Result:
.\dist<myModuleName>
.\dist<myModuleName>\en-US
.\dist<myModuleName>\en-US\about_.help.txt