FrameworkTemplate/SolutionTemplate/Scripts/PrePackAction.ps1
<#
.SYNOPSIS Executes pre-pack actions before a solution is packed into a deployable package. .DESCRIPTION This script runs automatically before the solution packing process begins. Use this to modify solution files or perform pre-packing operations. .PARAMETER Conn The connection object to the Dataverse environment. .PARAMETER EnvironmentName The name of the target environment where the solution will be deployed. .PARAMETER Path The file path to the unpacked solution directory. #> Param( [System.Object] [Parameter(Mandatory = $true)] $Conn, [string] [Parameter(Mandatory = $true)] $EnvironmentName, [string] [Parameter(Mandatory = $true)] $Path ) $ProgressPreference = 'SilentlyContinue' Write-Host "Executing Pre Pack Action for environment: $EnvironmentName" Write-Host "Solution Path: $Path" # Add your custom pre-pack logic here |