diff --git a/NuGet.config b/NuGet.config
index e369b7fa35..f07d7285be 100644
--- a/NuGet.config
+++ b/NuGet.config
@@ -17,6 +17,7 @@
+
diff --git a/scripts/build.ps1 b/scripts/build.ps1
index 4704a1ef03..7e26bb4637 100644
--- a/scripts/build.ps1
+++ b/scripts/build.ps1
@@ -569,6 +569,17 @@ function Publish-Package
Copy-Item -Recurse $intellitraceSourceDirectory\* $intellitraceTargetDirectory -Force
+ # Copy Microsoft.VisualStudio.TraceDataCollector
+ $codeCoverageExternalsVersion = ([xml](Get-Content $env:TP_ROOT_DIR\scripts\build\TestPlatform.Dependencies.props)).Project.PropertyGroup.CodeCoverageExternalsVersion
+ $traceDataCollectorSourceDirectory = Join-Path $env:TP_PACKAGES_DIR "Microsoft.VisualStudio.TraceDataCollector\$codeCoverageExternalsVersion\lib"
+ $traceDataCollectorTargetDirectory = Join-Path $env:TP_OUT_DIR "$TPB_Configuration\Microsoft.VisualStudio.TraceDataCollector"
+
+ if (-not (Test-Path $traceDataCollectorTargetDirectory)) {
+ New-Item $traceDataCollectorTargetDirectory -Type Directory -Force | Out-Null
+ }
+
+ Copy-Item -Recurse $traceDataCollectorSourceDirectory\* $traceDataCollectorTargetDirectory -Force
+
# Copy Microsoft.VisualStudio.Telemetry APIs
$testPlatformDirectory = Join-Path $env:TP_OUT_DIR "$TPB_Configuration\Intellitrace\Common7\IDE\Extensions\TestPlatform"
@@ -685,6 +696,11 @@ function Create-VsixPackage
$legacyTestImpactComComponentsDir = Join-Path $extensionsPackageDir "V1\TestImpact"
$testPlatformExternalsVersion = ([xml](Get-Content $env:TP_ROOT_DIR\scripts\build\TestPlatform.Dependencies.props)).Project.PropertyGroup.TestPlatformExternalsVersion
+ $codeCoverageExternalsVersion = ([xml](Get-Content $env:TP_ROOT_DIR\scripts\build\TestPlatform.Dependencies.props)).Project.PropertyGroup.CodeCoverageExternalsVersion
+
+ # Copy Microsoft.VisualStudio.TraceDataCollector to Extensions
+ $traceDataCollectorSourceDirectory = Join-Path $env:TP_PACKAGES_DIR "Microsoft.VisualStudio.TraceDataCollector\$codeCoverageExternalsVersion\lib\net472"
+ Copy-Item $traceDataCollectorSourceDirectory\Microsoft.VisualStudio.TraceDataCollector.dll $extensionsPackageDir -Force
# Copy legacy dependencies
$legacyDir = Join-Path $env:TP_PACKAGES_DIR "Microsoft.Internal.TestPlatform.Extensions\$testPlatformExternalsVersion\contentFiles\any\any"
diff --git a/scripts/build/TestPlatform.Dependencies.props b/scripts/build/TestPlatform.Dependencies.props
index cff00fd138..0f20954db6 100644
--- a/scripts/build/TestPlatform.Dependencies.props
+++ b/scripts/build/TestPlatform.Dependencies.props
@@ -31,8 +31,8 @@
5.0.0
9.0.1
4.7.63
- 16.9.0-preview-4250332
- 16.9.0-beta.20570.2
+ 16.9.0-preview-4267359
+ 16.9.0-beta.20603.1
16.8.0-beta.20420.2
16.0.461
diff --git a/src/package/external/external.csproj b/src/package/external/external.csproj
index bd0f0e5ceb..43429809cf 100644
--- a/src/package/external/external.csproj
+++ b/src/package/external/external.csproj
@@ -53,6 +53,10 @@
$(TestPlatformExternalsVersion)
All
+
+ $(CodeCoverageExternalsVersion)
+ All
+
$(TestPlatformExternalsVersion)
All
diff --git a/src/package/nuspec/Microsoft.TestPlatform.nuspec b/src/package/nuspec/Microsoft.TestPlatform.nuspec
index 504f900f82..cf8b50f0d3 100644
--- a/src/package/nuspec/Microsoft.TestPlatform.nuspec
+++ b/src/package/nuspec/Microsoft.TestPlatform.nuspec
@@ -258,7 +258,7 @@
-
+
@@ -266,7 +266,7 @@
-
+
diff --git a/src/package/sign/sign.proj b/src/package/sign/sign.proj
index 014d06c450..fc155e16ef 100644
--- a/src/package/sign/sign.proj
+++ b/src/package/sign/sign.proj
@@ -130,12 +130,12 @@
-
-
+
+
-
+
@@ -275,16 +275,17 @@
-
-
-
-
-
+
+
+
+
+
+
-
-
+
+