forked from stevencohn/OneMore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f2fc57
commit 7b2952b
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,10 @@ jobs: | |
- name: Setup devenv | ||
uses: seanmiddleditch/gha-setup-vsdevenv@master | ||
|
||
- name: Install VSIX | ||
shell: powershell | ||
run: .\setup-vsix.ps1 | ||
|
||
- name: Setup NuGet | ||
uses: NuGet/[email protected] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<# | ||
.SYNOPSIS | ||
Install the InstallerProjects VS Extension to support vdproj Deployment Project builds | ||
#> | ||
|
||
param () | ||
|
||
Begin | ||
{ | ||
|
||
function InstallVSExtensions | ||
{ | ||
$root = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath | ||
$installer = "$root\Common7\IDE\vsixinstaller.exe" | ||
|
||
# TODO: update these versions every now and then... | ||
|
||
InstallVsix $installer 'InstallerProjects' 'VisualStudioClient/vsextensions/MicrosoftVisualStudio2017InstallerProjects/1.0.0/vspackage' | ||
|
||
Write-Host | ||
Write-Host '... Waiting a minute for the VSIXInstaller processes to complete' -ForegroundColor Yellow | ||
Start-Sleep 60 | ||
} | ||
|
||
|
||
function InstallVsix | ||
{ | ||
param($installer, $name, $uri) | ||
Write-Host "... installing $name extension in the background" -ForegroundColor Yellow | ||
|
||
$url = "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/$uri" | ||
$vsix = "$($env:TEMP)\$name`.vsix" | ||
|
||
# download package directly from VS Marketplace and install | ||
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Ssl3,Tls,Tls11,Tls12' | ||
$progressPreference = 'silentlyContinue' | ||
Invoke-WebRequest $url -OutFile $vsix | ||
$progressPreference = 'Continue' | ||
|
||
& $installer /quiet /norepair $vsix | ||
} | ||
} | ||
Process | ||
{ | ||
InstallVSExtensions | ||
} |