Skip to content

Commit 1bc3dce

Browse files
committed
Fix module and manifest
Ready for publishing
1 parent 9d9ec71 commit 1bc3dce

File tree

2 files changed

+29
-4
lines changed

2 files changed

+29
-4
lines changed

ListFunctions/ListFunctions.psd1

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Mike Garvey
55
#
6-
# Generated on: 8/29/2020
6+
# Generated on: 1/7/2024
77
#
88

99
@{
@@ -30,7 +30,7 @@
3030
Copyright = 'Copyright (c) 2020-2024 Yevrag35, LLC.'
3131

3232
# Description of the functionality provided by this module
33-
Description = 'A simple module that provides functions to manipulate and search through Arrays, Collections, Lists, and Sets.'
33+
Description = 'A simple module that provides functions to manipulate, search, and create Arrays, Collections, Lists, and Sets.'
3434

3535
# Minimum version of the Windows PowerShell engine required by this module
3636
PowerShellVersion = '5.1'
@@ -96,7 +96,15 @@
9696

9797
# List of all files packaged with this module
9898
FileList = @(
99-
99+
'ListFunctions.psm1',
100+
'Core\ListFunctions.Engine.dll',
101+
'Core\ListFunctions.Next.dll',
102+
'Core\MG.Collections.dll',
103+
'Core\MG.Collections.Resources.dll',
104+
'Desk\ListFunctions.Engine.dll',
105+
'Desk\ListFunctions.NETFramework.dll',
106+
'Desk\MG.Collections.dll',
107+
'Desk\MG.Collections.Resources.dll'
100108
)
101109

102110
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.

ListFunctions/ListFunctions.psm1

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,18 @@
1-

1+
switch ($PSVersionTable.PSVersion.Major) {
2+
5 { $script:dllPath = "$PSScriptRoot\Desk\ListFunctions.NETFramework.dll" }
3+
7 { $script:dllPath = "$PSScriptRoot\Core\ListFunctions.Next.dll" }
4+
default { throw "Incompatible PowerShell Version" }
5+
}
6+
7+
$script:assFolder = Split-Path -Path $script:dllPath -Parent
8+
$script:loadThese = @(
9+
'MG.Collections.dll',
10+
'ListFunctions.Engine.dll'
11+
)
12+
13+
foreach ($script:assName in $script:loadThese) {
14+
15+
Import-Module "$($script:assFolder)\$($script:assName)"
16+
}
17+
18+
Import-Module $script:dllPath -ErrorAction Stop

0 commit comments

Comments
 (0)