Sha256: b50be02e27effc3f7aa17613f019f4f0f0e2ae857a82bea5fe9b6f4b3a253d94

Contents?: true

Size: 1.18 KB

Versions: 9

Compression:

Stored size: 1.18 KB

Contents

# fail on errors and include uplift helpers
$ErrorActionPreference = "Stop"

Import-Module Uplift.Core

Write-UpliftMessage "Running Visual Studio post-deploy script..."
Write-UpliftEnv

$productName = Get-UpliftEnvVariable "UPLF_VS_PRODUCT_NAME"

if ($productName.Contains("2015") -eq $true) {

    Write-UpliftMessage "Detected VS 2015 install. Ensuring additional plugins..."

    # ensuring "choco install -y webpicmd" is here
    # it should come with APP image but in case we failed or building on old image, install it in the fly
    Write-UpliftMessage "Ensuring webpicmd install..."
    choco install -y webpicmd --limit-output --acceptlicense --no-progress
    Confirm-UpliftExitCode $LASTEXITCODE "Cannot run choco install -y webpicmd"

    Write-UpliftMessage "Installing Office Development tools via webpicmd"
    # https://github.com/mszcool/devmachinesetup/blob/master/Install-WindowsMachine.ps1
    webpicmd /Install /Products:OfficeToolsForVS2015 /AcceptEula
    Confirm-UpliftExitCode $LASTEXITCODE "Cannot install Office Development tools"

} else {
    Write-UpliftMessage "No post deploy is needed..."
}

Write-UpliftMessage  "Visual Studio post-deploy script completed."

exit 0;

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
vagrant-uplift-0.2.1902.49 lib/scripts/vagrant/uplift.vagrant.visual_studio13/vs13.dsc.post_deploy.ps1
vagrant-uplift-0.2.1902.46 lib/scripts/vagrant/uplift.vagrant.visual_studio13/vs13.dsc.post_deploy.ps1
vagrant-uplift-0.2.1902.42 lib/scripts/vagrant/uplift.vagrant.visual_studio13/vs13.dsc.post_deploy.ps1
vagrant-uplift-0.2.1902.40 lib/scripts/vagrant/uplift.vagrant.visual_studio13/vs13.dsc.post_deploy.ps1
vagrant-uplift-0.2.1902.39 lib/scripts/vagrant/uplift.vagrant.visual_studio13/vs13.dsc.post_deploy.ps1
vagrant-uplift-0.2.1902.37 lib/scripts/vagrant/uplift.vagrant.visual_studio13/vs13.dsc.post_deploy.ps1
vagrant-uplift-0.2.1902.32 lib/scripts/vagrant/uplift.vagrant.visual_studio13/vs13.dsc.post_deploy.ps1
vagrant-uplift-0.2.1902.19 lib/scripts/vagrant/uplift.vagrant.visual_studio13/vs13.dsc.post_deploy.ps1
vagrant-uplift-0.2.1902.18 lib/scripts/vagrant/uplift.vagrant.visual_studio13/vs13.dsc.post_deploy.ps1