diff --git a/Module/PSProxmox.psd1 b/Module/PSProxmox.psd1 index f9b4475..5efd263 100644 --- a/Module/PSProxmox.psd1 +++ b/Module/PSProxmox.psd1 @@ -1,6 +1,6 @@ @{ - RootModule = 'PSProxmox.dll' - ModuleVersion = '2025.04.28.2015' + RootModule = 'PSProxmox.psm1' + ModuleVersion = '2025.04.28.2022' GUID = 'd24f0894-3d0c-4ef1-a41e-b273c3db86ad' Author = 'PSProxmox Team' CompanyName = 'PSProxmox' @@ -10,7 +10,9 @@ DotNetFrameworkVersion = '4.7.2' CompatiblePSEditions = @('Desktop', 'Core') # Assemblies that must be loaded prior to importing this module - RequiredAssemblies = @('bin\PSProxmox.dll', 'bin\Newtonsoft.Json.dll') + RequiredAssemblies = @('bin\Newtonsoft.Json.dll') + # Assemblies to process when importing this module + AssembliesToProcess = @('bin\PSProxmox.dll') # Script files (.ps1) that are run in the caller's environment prior to importing this module ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module @@ -92,3 +94,4 @@ + diff --git a/Scripts/Install-PSProxmox.ps1 b/Scripts/Install-PSProxmox.ps1 index 75d3645..0ebb722 100644 --- a/Scripts/Install-PSProxmox.ps1 +++ b/Scripts/Install-PSProxmox.ps1 @@ -28,6 +28,7 @@ if (-not (Test-Path -Path "$modulePath\bin")) { # Copy the module files Copy-Item -Path "$rootPath\Module\PSProxmox.psd1" -Destination $modulePath -Force +Copy-Item -Path "$rootPath\Module\PSProxmox.psm1" -Destination $modulePath -Force Copy-Item -Path "$rootPath\Module\bin\PSProxmox.dll" -Destination "$modulePath\bin" -Force Copy-Item -Path "$rootPath\Module\bin\Newtonsoft.Json.dll" -Destination "$modulePath\bin" -Force Copy-Item -Path "$rootPath\LICENSE" -Destination $modulePath -Force diff --git a/Scripts/build.ps1 b/Scripts/build.ps1 index 9c15de4..2e608af 100644 --- a/Scripts/build.ps1 +++ b/Scripts/build.ps1 @@ -39,6 +39,7 @@ dotnet build "$rootPath\PSProxmox\PSProxmox.Main.csproj" -c Release -o $releaseB # Copy the module files to the release directory Copy-Item -Path "$rootPath\Module\PSProxmox.psd1" -Destination $releaseVersionDir -Force +Copy-Item -Path "$rootPath\Module\PSProxmox.psm1" -Destination $releaseVersionDir -Force Copy-Item -Path "$rootPath\LICENSE" -Destination $releaseVersionDir -Force Copy-Item -Path "$rootPath\README.md" -Destination $releaseVersionDir -Force Copy-Item -Path "$scriptRoot\Install-PSProxmox.ps1" -Destination $releaseVersionDir -Force