Build PSappDeployToolkit from source

Hi, I was trying to build the v4.1.7 Toolkit from source just to see how that works but can't get it to work. I must be doing something wrong.

I use this info i got from my friend AI:

CD C:\Temp\TestBuild\PsAppDeployToolkit\src

Install-Module InvokeBuild -Scope CurrentUser
Install-Module ModuleBuilder -Scope CurrentUser
Install-Module Pester -Scope CurrentUser

Invoke-Build -File .\PSAppDeployToolkit.Build.ps1

Then it throws me an error:

Import-LocalizedData : Cannot find the Windows PowerShell data file '.psd1' in directory 'C:\Temp\PSADTComp\PsAppDeployToolkit\src\\en-US\', or in any parent culture directories.
At C:\Temp\PSADTComp\PsAppDeployToolkit\src\PSAppDeployToolkit.Build.ps1:225 char:21
+ ... ifestInfo = Import-LocalizedData -BaseDirectory $Script:ModuleSourceP ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Temp\PSADTCo...rc\\en-US\.psd1:String) [Import-LocalizedData], PSInvalidOperationException
    + FullyQualifiedErrorId : ImportLocalizedData,Microsoft.PowerShell.Commands.ImportLocalizedData

Is there somewhere a guide on how to do this?
The en-US folder is not in the source.

Kind Regards,

Looks like your source is corrupt. You're also missing a bunch of modules: PSAppDeployToolkit/.github/workflows/module-build.yml at 4f62c5bf7834852b4ae026b8b9a559f9ed87a442 · PSAppDeployToolkit/PSAppDeployToolkit · GitHub

Don't use AI nonsense for this; all the required info is in our Git repository on how the module build comes together.

Ok, thanks for the clear answer. Conclusion for me is that it is out of my scope and I will ask help from our company's development guys for this.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.