|
51 | 51 | [Switch] $Force,
|
52 | 52 |
|
53 | 53 | [Alias("s")]
|
54 |
| - [String[]] $Steps = @("InstallDotnet", "Restore", "UpdateLocalization", "Build", "Publish", "PrepareAcceptanceTests") |
| 54 | + [String[]] $Steps = @("InstallDotnet", "Restore", "UpdateLocalization", "Build", "Publish", "Pack", "Manifest", "PrepareAcceptanceTests") |
55 | 55 | )
|
56 | 56 |
|
57 | 57 | $ErrorActionPreference = 'Stop'
|
@@ -759,12 +759,10 @@ function Move-Loc-Files($sourceDir, $destinationDir, $dllName) {
|
759 | 759 | }
|
760 | 760 | }
|
761 | 761 |
|
762 |
| -function Create-VsixPackage { |
763 |
| - Write-Log "Create-VsixPackage: Started." |
| 762 | +function Publish-VsixPackage { |
| 763 | + Write-Log "Publish-VsixPackage: Started." |
764 | 764 | $timer = Start-Timer
|
765 | 765 |
|
766 |
| - $vsixSourceDir = Join-Path $env:TP_ROOT_DIR "src\package\VSIXProject" |
767 |
| - $vsixProjectDir = Join-Path $env:TP_OUT_DIR "$TPB_Configuration\VSIX" |
768 | 766 | $packageDir = Get-FullCLRPackageDirectory
|
769 | 767 | $extensionsPackageDir = Join-Path $packageDir "Extensions"
|
770 | 768 | $testImpactComComponentsDir = Join-Path $extensionsPackageDir "TestImpact"
|
@@ -847,10 +845,20 @@ function Create-VsixPackage {
|
847 | 845 | Copy-Item -Recurse $comComponentsDirectoryTIA\* $legacyTestImpactComComponentsDir -Force
|
848 | 846 |
|
849 | 847 | Copy-Item (Join-Path $env:TP_PACKAGE_PROJ_DIR "ThirdPartyNotices.txt") $packageDir -Force
|
| 848 | + |
| 849 | + Write-Log "Publish-VsixPackage: Complete. {$(Get-ElapsedTime($timer))}" |
| 850 | +} |
| 851 | + |
| 852 | +function Create-VsixPackage { |
| 853 | + Write-Log "Create-VsixPackage: Started." |
| 854 | + $timer = Start-Timer |
850 | 855 |
|
851 | 856 | Write-Verbose "Locating MSBuild install path..."
|
852 | 857 | $msbuildPath = Locate-MSBuildPath
|
853 | 858 |
|
| 859 | + $vsixSourceDir = Join-Path $env:TP_ROOT_DIR "src\package\VSIXProject" |
| 860 | + $vsixProjectDir = Join-Path $env:TP_OUT_DIR "$TPB_Configuration\VSIX" |
| 861 | + |
854 | 862 | # Create vsix only when msbuild is installed.
|
855 | 863 | if (![string]::IsNullOrEmpty($msbuildPath)) {
|
856 | 864 | # Copy the vsix project to artifacts directory to modify manifest
|
@@ -1276,11 +1284,15 @@ if ($Force -or $Steps -contains "Build") {
|
1276 | 1284 |
|
1277 | 1285 | if ($Force -or $Steps -contains "Publish") {
|
1278 | 1286 | Publish-Package
|
| 1287 | + Publish-VsixPackage |
| 1288 | +} |
| 1289 | + |
| 1290 | +if ($Force -or $Steps -contains "Pack") { |
1279 | 1291 | Create-VsixPackage
|
1280 | 1292 | Create-NugetPackages
|
1281 | 1293 | }
|
1282 | 1294 |
|
1283 |
| -if ($Force -or $Steps -contains "Publish" -or $Steps -contains "Manifest") { |
| 1295 | +if ($Force -or $Steps -contains "Manifest") { |
1284 | 1296 | Generate-Manifest -PackageFolder $TPB_PackageOutDir
|
1285 | 1297 | if (Test-Path $TPB_SourceBuildPackageOutDir)
|
1286 | 1298 | {
|
|
0 commit comments