@@ -126,40 +126,40 @@ try {
126126 }
127127 }
128128
129- $InstallNuGetPkgScriptPath = " $PSScriptRoot \tools\Install -NuGetPackage.ps1"
129+ $DownloadNuGetPkgScriptPath = " $PSScriptRoot \tools\Download -NuGetPackage.ps1"
130130 $nugetVerbosity = ' quiet'
131131 if ($Verbose ) { $nugetVerbosity = ' normal' }
132132 $MicroBuildPackageSource = ' https://pkgs.dev.azure.com/devdiv/_packaging/MicroBuildToolset%40Local/nuget/v3/index.json'
133133 if ($Signing ) {
134134 Write-Host " Installing MicroBuild signing plugin" - ForegroundColor $HeaderColor
135- & $InstallNuGetPkgScriptPath MicroBuild.Plugins.Signing - source $MicroBuildPackageSource - Verbosity $nugetVerbosity
135+ & $DownloadNuGetPkgScriptPath - PackageId MicroBuild.Plugins.Signing - Source $MicroBuildPackageSource - Verbosity $nugetVerbosity
136136 $EnvVars [' SignType' ] = " Test"
137137 }
138138
139139 if ($Setup ) {
140140 Write-Host " Installing MicroBuild SwixBuild plugin..." - ForegroundColor $HeaderColor
141- & $InstallNuGetPkgScriptPath Microsoft.VisualStudioEng.MicroBuild.Plugins.SwixBuild - source $MicroBuildPackageSource - Verbosity $nugetVerbosity
141+ & $DownloadNuGetPkgScriptPath - PackageId Microsoft.VisualStudioEng.MicroBuild.Plugins.SwixBuild - Source $MicroBuildPackageSource - Verbosity $nugetVerbosity
142142 }
143143
144144 if ($OptProf ) {
145145 Write-Host " Installing MicroBuild OptProf plugin" - ForegroundColor $HeaderColor
146- & $InstallNuGetPkgScriptPath MicroBuild.Plugins.OptProf - source $MicroBuildPackageSource - Verbosity $nugetVerbosity
146+ & $DownloadNuGetPkgScriptPath - PackageId MicroBuild.Plugins.OptProf - Source $MicroBuildPackageSource - Verbosity $nugetVerbosity
147147 $EnvVars [' OptProfEnabled' ] = ' 1'
148148 }
149149
150150 if ($Localization ) {
151151 Write-Host " Installing MicroBuild localization plugin" - ForegroundColor $HeaderColor
152- & $InstallNuGetPkgScriptPath MicroBuild.Plugins.Localization - source $MicroBuildPackageSource - Verbosity $nugetVerbosity
152+ & $DownloadNuGetPkgScriptPath - PackageId MicroBuild.Plugins.Localization - Source $MicroBuildPackageSource - Verbosity $nugetVerbosity
153153 $EnvVars [' LocType' ] = " Pseudo"
154154 $EnvVars [' LocLanguages' ] = " JPN"
155155 }
156156
157157 if ($SBOM ) {
158158 Write-Host " Installing MicroBuild SBOM plugin" - ForegroundColor $HeaderColor
159- & $InstallNuGetPkgScriptPath MicroBuild.Plugins.Sbom - source $MicroBuildPackageSource - Verbosity $nugetVerbosity
159+ & $DownloadNuGetPkgScriptPath - PackageId MicroBuild.Plugins.Sbom - Source $MicroBuildPackageSource - Verbosity $nugetVerbosity
160160 # The feed with the latest versions of the tool is at 'https://1essharedassets.pkgs.visualstudio.com/1esPkgs/_packaging/SBOMTool/nuget/v3/index.json',
161161 # but we'll use the feed that the SBOM task itself uses to install the tool for consistency.
162- $PkgMicrosoft_ManifestTool_CrossPlatform = & $InstallNuGetPkgScriptPath Microsoft.ManifestTool.CrossPlatform - source $MicroBuildPackageSource - Verbosity $nugetVerbosity
162+ $PkgMicrosoft_ManifestTool_CrossPlatform = & $DownloadNuGetPkgScriptPath - PackageId Microsoft.ManifestTool.CrossPlatform - Source $MicroBuildPackageSource - Verbosity $nugetVerbosity
163163 $EnvVars [' GenerateSBOM' ] = " true"
164164 $EnvVars [' PkgMicrosoft_ManifestTool_CrossPlatform' ] = $PkgMicrosoft_ManifestTool_CrossPlatform
165165 }
0 commit comments