raandree / Microsoft365DscWorkshop

MIT License
20 stars 6 forks source link

Error during "Test the Build and Download Dependencies" step #18

Open Yasin0ps opened 2 months ago

Yasin0ps commented 2 months ago

Right after cloning the repo and trying to test the dependencies, I'm getting one error after executing: ".\build.ps1 -UseModuleFast"

Did not find 'RootConfiguration.ps1' and 'CompileRootConfiguration.ps1' in 'source', using the ones in 'Sampler.DscPipeline'
RootConfiguration will import these composite resource modules as defined in 'build.yaml':
        - PSDesiredStateConfiguration
        - DscConfig.M365
        - DscConfig.Demo
Preloading available resources
Error(s) occured during the compilation. Details will be shown below
Transcript stopped, output file is C:\Git\output\Logs\CompileRootConfiguration.log
ERROR: At line:4 char:50
+  Import-DscResource -ModuleName  -ModuleVersion  -Name
+                                                  ~~~~~
The argument for the Name parameter is not valid. Specify a valid string argument.
At line:4 char:34
+  Import-DscResource -ModuleName  -ModuleVersion  -Name
+                                  ~~~~~~~~~~~~~~
Argument must be constant.
At line:4 char:21
+  Import-DscResource -ModuleName  -ModuleVersion  -Name
+                     ~~~~~~~~~~~
Argument must be constant.
At C:\Git\output\RequiredModules\Sampler.DscPipeline\9.9.9\tasks\CompileRootConfiguration.build.ps1:44 char:1
+ task CompileRootConfiguration {
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Build FAILED. 14 tasks, 1 errors, 0 warnings 00:00:50.1527048
Write-Error: C:\Git\build.ps1:536:9
Line |
 536 |          Invoke-Build @PSBoundParameters -Task $Tasks -File $MyInvocat …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The argument for the Name parameter is not valid. Specify a valid string argument.

Is this expected?