diff --git a/images/win/scripts/Installers/Windows2019/Install-InstallerProjects.ps1 b/images/win/scripts/Installers/Windows2019/Install-InstallerProjects.ps1 new file mode 100644 index 00000000..5c4628d5 --- /dev/null +++ b/images/win/scripts/Installers/Windows2019/Install-InstallerProjects.ps1 @@ -0,0 +1,11 @@ +################################################################################ +## File: Install-InstallerProjects.ps1 +## Desc: Install the InstallerProjects Visual Studio Extension +################################################################################ + +Import-Module -Name ImageHelpers -Force + +$InstallerProjectsUrl = 'https://marketplace.visualstudio.com/_apis/public/gallery/publishers/VisualStudioClient/vsextensions/MicrosoftVisualStudio2017InstallerProjects/0.9.8/vspackage' +Install-VsixExtension -Url $InstallerProjectsUrl -name "InstallerProjects.vsix" -VSversion "2019" + +Invoke-PesterTests -TestFile "InstallerProjects" \ No newline at end of file diff --git a/images/win/scripts/Tests/InstallerProjects.Tests.ps1 b/images/win/scripts/Tests/InstallerProjects.Tests.ps1 new file mode 100644 index 00000000..4552cd34 --- /dev/null +++ b/images/win/scripts/Tests/InstallerProjects.Tests.ps1 @@ -0,0 +1,7 @@ +Import-Module -Name VsSetup -Force +Describe "InstallProjects" { + It "InstallProjects exists" { + $InstallProjects = (Get-VSSetupInstance | Select-VsSetupInstance -Product *).Packages | Where-Object {$_.id -eq 'VSInstallerProjects' } + $InstallProjects | Should -Not -BeNullOrEmpty + } +} \ No newline at end of file