From 99b911a57a02fc5d2eeef23e9ab8cbea4505678b Mon Sep 17 00:00:00 2001
From: Medeni Baykal <433724+Haplois@users.noreply.github.com>
Date: Tue, 30 Mar 2021 18:34:28 +0300
Subject: [PATCH] Merging servicing fixes for 16.9.4 (#2837)
* Dynamic corelib.net loading (#2762) (#2803)
---
scripts/build.ps1 | 15 +++++++
scripts/build/TestPlatform.Dependencies.props | 4 +-
scripts/build/TestPlatform.Settings.targets | 2 +-
scripts/verify-nupkgs.ps1 | 2 +-
.../CodeCoverageDataAttachmentsHandler.cs | 40 +++++++++++++------
.../Microsoft.TestPlatform.Utilities.csproj | 1 -
6 files changed, 47 insertions(+), 17 deletions(-)
diff --git a/scripts/build.ps1 b/scripts/build.ps1
index b80ccd4bcd..b92c2b1176 100644
--- a/scripts/build.ps1
+++ b/scripts/build.ps1
@@ -573,6 +573,14 @@ function Publish-Package
Copy-Loc-Files $eventLogDataCollectorNetFull $coreCLRExtensionsDir "Microsoft.TestPlatform.Extensions.EventLogCollector.resources.dll"
}
+ # Copy Coverage.CoreLib.Net dlls
+ $codeCoverageExternalsVersion = ([xml](Get-Content $env:TP_ROOT_DIR\scripts\build\TestPlatform.Dependencies.props)).Project.PropertyGroup.CodeCoverageExternalsVersion
+ $codeCoverageCoreLibPackagesDir = Join-Path $env:TP_PACKAGES_DIR "microsoft.visualstudio.coverage.corelib.net\$codeCoverageExternalsVersion\lib\$TPB_TargetFrameworkStandard"
+ Copy-Item $codeCoverageCoreLibPackagesDir\Microsoft.VisualStudio.Coverage.CoreLib.Net.dll $coreCLR20PackageDir -Force
+ if($TPB_LocalizedBuild) {
+ Copy-Loc-Files $codeCoverageCoreLibPackagesDir $coreCLR20PackageDir "Microsoft.VisualStudio.Coverage.CoreLib.Net.resources.dll"
+ }
+
# If there are some dependencies for the TestHostRuntimeProvider assemblies, those need to be moved too.
$runtimeproviders = @("Microsoft.TestPlatform.TestHostRuntimeProvider.dll", "Microsoft.TestPlatform.TestHostRuntimeProvider.pdb")
foreach($file in $runtimeproviders) {
@@ -736,6 +744,13 @@ function Create-VsixPackage
if($TPB_LocalizedBuild) {
Copy-Loc-Files $traceDataCollectorPackageDirectory $extensionsPackageDir "Microsoft.VisualStudio.TraceDataCollector.resources.dll"
}
+
+ # Copy Microsoft.VisualStudio.CoreLib.Net
+ $codeCoverageCoreLibPackagesDir = Join-Path $env:TP_PACKAGES_DIR "microsoft.visualstudio.coverage.corelib.net\$codeCoverageExternalsVersion\lib\$TPB_TargetFramework451"
+ Copy-Item $codeCoverageCoreLibPackagesDir\Microsoft.VisualStudio.Coverage.CoreLib.Net.dll $packageDir -Force
+ if($TPB_LocalizedBuild) {
+ Copy-Loc-Files $codeCoverageCoreLibPackagesDir $packageDir "Microsoft.VisualStudio.Coverage.CoreLib.Net.resources.dll"
+ }
$codeCoverageInterprocessPackageDirectory = Join-Path $env:TP_PACKAGES_DIR "Microsoft.VisualStudio.Coverage.Interprocess\$codeCoverageExternalsVersion\lib\$TPB_TargetFrameworkNS20"
Copy-Item $codeCoverageInterprocessPackageDirectory\Microsoft.VisualStudio.Coverage.Interprocess.dll $extensionsPackageDir -Force
diff --git a/scripts/build/TestPlatform.Dependencies.props b/scripts/build/TestPlatform.Dependencies.props
index 3d5fe97b47..0028b19c30 100644
--- a/scripts/build/TestPlatform.Dependencies.props
+++ b/scripts/build/TestPlatform.Dependencies.props
@@ -11,7 +11,7 @@
- 16.9.1-dev
+ 16.9.4-dev
2.1.0
2.1.0
@@ -32,7 +32,7 @@
9.0.1
4.7.63
16.9.0-preview-4267359
- 16.9.0-beta.21119.4
+ 16.9.0-beta.21158.1
16.9.0-beta.20628.1
16.0.461
diff --git a/scripts/build/TestPlatform.Settings.targets b/scripts/build/TestPlatform.Settings.targets
index 0f80133468..1ba4ffbcba 100644
--- a/scripts/build/TestPlatform.Settings.targets
+++ b/scripts/build/TestPlatform.Settings.targets
@@ -5,7 +5,7 @@
- 16.9.1
+ 16.9.4