diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index c3ee2506eb..afcd052d01 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -64,14 +64,12 @@ jobs:
testResultsFiles: '**\*.trx'
condition: succeededOrFailed()
-# Linux build does not work when we mix runtimes and
-# we don't use the results to do anything, skipping it for now
-# - job: Linux
-# pool:
-# vmImage: 'ubuntu-16.04'
-# variables:
-# buildConfiguration: 'Release'
-# steps:
-# - script: ./build.sh -c $(buildConfiguration)
-# displayName: './build.sh -c $(buildConfiguration)'
+- job: Linux
+ pool:
+ vmImage: 'ubuntu-18.04'
+ variables:
+ buildConfiguration: 'Release'
+ steps:
+ - script: ./build.sh -c $(buildConfiguration)
+ displayName: './build.sh -c $(buildConfiguration)'
diff --git a/scripts/build.sh b/scripts/build.sh
index 009b5c3d82..fe0797beef 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -15,7 +15,7 @@ NOCOLOR='\033[0m'
# Parse options
#
CONFIGURATION="Debug"
-TARGET_RUNTIME="ubuntu.16.04-x64"
+TARGET_RUNTIME="ubuntu.18.04-x64"
VERSION="" # Will set this later by reading TestPlatform.Settings.targets file.
VERSION_SUFFIX="dev"
FAIL_FAST=false
@@ -238,7 +238,7 @@ function invoke_build()
log ".. .. Build: Source: $TPB_Solution"
# Workaround for https://github.com/dotnet/sdk/issues/335
- export FrameworkPathOverride=$TP_PACKAGES_DIR/microsoft.targetingpack.netframework.v4.6/1.0.1/lib/net46/
+ export FrameworkPathOverride=$TP_PACKAGES_DIR/microsoft.targetingpack.netframework.v4.7.2/1.0.0/lib/net472/
if [ -z "$PROJECT_NAME_PATTERNS" ]
then
if [[ $TP_USE_REPO_API = 0 ]]; then
diff --git a/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/Microsoft.TestPlatform.Extensions.BlameDataCollector.csproj b/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/Microsoft.TestPlatform.Extensions.BlameDataCollector.csproj
index 9d7a332540..f1cef62835 100644
--- a/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/Microsoft.TestPlatform.Extensions.BlameDataCollector.csproj
+++ b/src/Microsoft.TestPlatform.Extensions.BlameDataCollector/Microsoft.TestPlatform.Extensions.BlameDataCollector.csproj
@@ -23,11 +23,18 @@
-
+
+
+
+
+
+ 0.2.0-preview.20220.1
+
+
@@ -42,21 +49,5 @@
Resources.Designer.cs
-
-
- 0.2.0-preview.20220.1
-
-
-
diff --git a/src/package/external/external.csproj b/src/package/external/external.csproj
index 6e6bdc448c..9224602d52 100644
--- a/src/package/external/external.csproj
+++ b/src/package/external/external.csproj
@@ -4,7 +4,7 @@
- net46
+ net472
restore
win7-x64
false
@@ -94,10 +94,10 @@
All
-
- 1.0.1
+
+ 1.0.0
All
diff --git a/src/vstest.console/vstest.console.csproj b/src/vstest.console/vstest.console.csproj
index 6843aaf587..0de0c734c8 100644
--- a/src/vstest.console/vstest.console.csproj
+++ b/src/vstest.console/vstest.console.csproj
@@ -43,6 +43,7 @@
+
diff --git a/test/Microsoft.TestPlatform.AcceptanceTests/Microsoft.TestPlatform.AcceptanceTests.csproj b/test/Microsoft.TestPlatform.AcceptanceTests/Microsoft.TestPlatform.AcceptanceTests.csproj
index 928f62332f..dbc75999c4 100644
--- a/test/Microsoft.TestPlatform.AcceptanceTests/Microsoft.TestPlatform.AcceptanceTests.csproj
+++ b/test/Microsoft.TestPlatform.AcceptanceTests/Microsoft.TestPlatform.AcceptanceTests.csproj
@@ -35,5 +35,8 @@
+
+
+
diff --git a/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests.csproj b/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests.csproj
index 2852753cfa..84c0db3ec3 100644
--- a/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests.csproj
+++ b/test/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests/Microsoft.TestPlatform.Extensions.BlameDataCollector.UnitTests.csproj
@@ -17,12 +17,14 @@
+
-
+
+
diff --git a/test/Microsoft.TestPlatform.TestHostProvider.UnitTests/Hosting/DotnetTestHostManagerTests.cs b/test/Microsoft.TestPlatform.TestHostProvider.UnitTests/Hosting/DotnetTestHostManagerTests.cs
index 2cf1a8889d..d602d8bcbb 100644
--- a/test/Microsoft.TestPlatform.TestHostProvider.UnitTests/Hosting/DotnetTestHostManagerTests.cs
+++ b/test/Microsoft.TestPlatform.TestHostProvider.UnitTests/Hosting/DotnetTestHostManagerTests.cs
@@ -492,7 +492,7 @@ public void GetTestHostProcessStartInfoOnWindowsForValidPathReturnsFullPathOfDot
char separator = ';';
var dotnetExeName = "dotnet.exe";
#if !NET451
- if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
+ if (!System.Environment.OSVersion.Platform.ToString().StartsWith("Win"))
{
separator = ':';
dotnetExeName = "dotnet";
@@ -519,7 +519,7 @@ public void GetTestHostProcessStartInfoShouldThrowExceptionWhenDotnetIsNotInstal
char separator = ';';
var dotnetExeName = "dotnet.exe";
- if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
+ if (!System.Environment.OSVersion.Platform.ToString().StartsWith("Win"))
{
separator = ':';
dotnetExeName = "dotnet";
diff --git a/test/Microsoft.TestPlatform.TestHostProvider.UnitTests/Microsoft.TestPlatform.TestHostProvider.UnitTests.csproj b/test/Microsoft.TestPlatform.TestHostProvider.UnitTests/Microsoft.TestPlatform.TestHostProvider.UnitTests.csproj
index 6c2c1139a8..ac42301ead 100644
--- a/test/Microsoft.TestPlatform.TestHostProvider.UnitTests/Microsoft.TestPlatform.TestHostProvider.UnitTests.csproj
+++ b/test/Microsoft.TestPlatform.TestHostProvider.UnitTests/Microsoft.TestPlatform.TestHostProvider.UnitTests.csproj
@@ -8,19 +8,18 @@
Exe
Microsoft.TestPlatform.TestHostProvider.UnitTests
- netcoreapp2.1;net451
+ netcoreapp2.1;net472
true
-
-
-
+
+
diff --git a/test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj b/test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj
index d0c2957dff..47ac9bd9b4 100644
--- a/test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj
+++ b/test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj
@@ -23,6 +23,7 @@
+
diff --git a/test/datacollector.PlatformTests/datacollector.PlatformTests.csproj b/test/datacollector.PlatformTests/datacollector.PlatformTests.csproj
index 9def0ed7d6..5c1834b815 100644
--- a/test/datacollector.PlatformTests/datacollector.PlatformTests.csproj
+++ b/test/datacollector.PlatformTests/datacollector.PlatformTests.csproj
@@ -19,7 +19,7 @@
PreserveNewest
-
+
diff --git a/test/datacollector.UnitTests/datacollector.UnitTests.csproj b/test/datacollector.UnitTests/datacollector.UnitTests.csproj
index 8e21bb9594..e4dd4abe91 100644
--- a/test/datacollector.UnitTests/datacollector.UnitTests.csproj
+++ b/test/datacollector.UnitTests/datacollector.UnitTests.csproj
@@ -16,7 +16,7 @@
-
+