Custom script for SCORE Nuget packages setup

Available for version SCORE 2.1.25+, SCORE UI 2.1.20+, SCORE Bootstrap UI 2.1.16+

SCORE Nuget packages include init.ps1 script that does lots of great things. It finds Sandbox location, configure package Installer, detects component versions, updates components if necessary and commit configuration changes.  

That scenario should work for majority of cases. If you need replace that flow with something else, that is also possible.

You can terminate the execution of init.ps1 script and run your custom script inheriting all the parameters that engine sends to it.

To implement that you need to add file with name customInit.ps1 into Automation subfolder of solution root.

Full path should look as follows:

<solution-root>\Automation\customInit.ps1

Sample script:

Param($installPath, $toolsPath, $package, $project)

"Hello from customInit.ps1. I just got parameters below and ready for work."

"Installation path - $installPath"
"Tools path        - $toolsPath"
"package object    - $package"
"EnvDTE project    - $project"

"You can find documentation for parameters here - https://docs.nuget.org/create/creating-and-publishing-a-package#automatically-running-powershell-scripts-during-package-installation-and-removal"