diff --git a/build.proj b/build.proj
index 7d39fa93d3..d42e94b50c 100644
--- a/build.proj
+++ b/build.proj
@@ -70,13 +70,6 @@
-
-
-
-
-
-
-
@@ -87,6 +80,9 @@
+
+
+
@@ -97,8 +93,10 @@
-
-
+
+
+
+
@@ -110,7 +108,6 @@
-
@@ -119,7 +116,6 @@
-
@@ -167,15 +163,6 @@
-
-
-
-
-
-
-
-
-
@@ -185,15 +172,6 @@
-
-
-
-
-
-
-
-
-
@@ -258,19 +236,16 @@
$(DotnetPath)dotnet test "@(FunctionalTestsProj)"
- --no-build
- -v n
+ -f $(TF)
-p:Configuration=$(Configuration)
- -p:Target$(TFGroup)Version=$(TF)
-p:ReferenceType=$(ReferenceType)
- -p:TestSet=$(TestSet)
- -p:TestTargetOS=Windows$(TargetGroup)
$(CollectStatement)
--results-directory $(ResultsDirectory)
--filter "$(FilterStatement)"
--logger:"trx;LogFilePrefix=Functional-Windows$(TargetGroup)-$(TestSet)"
- $(TestCommand.Replace($([System.Environment]::NewLine), " "))
+
+ $([System.Text.RegularExpressions.Regex]::Replace($(TestCommand), "\s+", " "))
@@ -281,19 +256,16 @@
$(DotnetPath)dotnet test "@(FunctionalTestsProj)"
- --no-build
- -v n
+ -f $(TF)
-p:Configuration=$(Configuration)
- -p:TargetNetCoreVersion=$(TF)
-p:ReferenceType=$(ReferenceType)
- -p:TestSet=$(TestSet)
- -p:TestTargetOS=Unixnetcoreapp
$(CollectStatement)
--results-directory $(ResultsDirectory)
--filter "$(FilterStatement)"
--logger:"trx;LogFilePrefix=Functional-Unixnetcoreapp-$(TestSet)"
- $(TestCommand.Replace($([System.Environment]::NewLine), " "))
+
+ $([System.Text.RegularExpressions.Regex]::Replace($(TestCommand), "\s+", " "))
diff --git a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.FunctionalTests.csproj b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.FunctionalTests.csproj
index 7f6d8abd2c..3cdd360113 100644
--- a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.FunctionalTests.csproj
+++ b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.FunctionalTests.csproj
@@ -1,149 +1,107 @@
- false
+
FunctionalTests
- netfx
- netcoreapp
- win
- win-$(Platform)
- $(ObjFolder)$(Configuration).$(Platform).$(AssemblyName)
- $(BinFolder)$(Configuration).$(Platform).$(AssemblyName)
+ Microsoft.Data.SqlClient.FunctionalTests
true
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
+
+
+
+
+
+
Always
+
+
+ PreserveNewest
+ xunit.runner.json
+
-
+
+
+
-
-
-
- runtime; build; native; contentfiles; analyzers; buildtransitive
- all
-
-
- runtime; build; native; contentfiles; analyzers; buildtransitive
- all
-
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
- runtime; build; native; contentfiles; analyzers; buildtransitive
- all
-
-
-
-
-
-
-
-
-
- Common
-
-
- Address
-
-
- TDS.Servers
-
-
- TDS.EndPoint
-
-
- TDS
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
- PreserveNewest
- %(Filename)%(Extension)
-
-
-
-
- PreserveNewest
- xunit.runner.json
-
+
+
+
diff --git a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SslOverTdsStreamTest.cs b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SslOverTdsStreamTest.cs
index 56cc653744..410e518033 100644
--- a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SslOverTdsStreamTest.cs
+++ b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SslOverTdsStreamTest.cs
@@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
+#if NET
+
using System;
using System.Diagnostics;
using System.IO;
@@ -171,7 +173,7 @@ private static void InvokeFinishHandshake(Stream stream)
private static Stream CreateSslOverTdsStream(Stream stream)
{
- Type type = typeof(SqlClientFactory).Assembly.GetType("Microsoft.Data.SqlClient.SNI.SslOverTdsStream");
+ Type type = typeof(SqlClientFactory).Assembly.GetType("Microsoft.Data.SqlClient.ManagedSni.SslOverTdsStream");
ConstructorInfo ctor = type.GetConstructor(new Type[] { typeof(Stream) });
Stream instance = (Stream)ctor.Invoke(new object[] { stream });
return instance;
@@ -359,3 +361,5 @@ public override ValueTask ReadAsync(Memory destination, CancellationT
}
}
}
+
+#endif
diff --git a/src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj b/src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj
index 90dcc1a8af..c73feb4119 100644
--- a/src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj
+++ b/src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj
@@ -52,10 +52,10 @@
IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive"
PrivateAssets="all" />
-
-
-
+
+
+
@@ -73,9 +73,9 @@
IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive"
PrivateAssets="all" />
-
-
-
+
+
+