diff --git a/build.proj b/build.proj
index df4d4c12a6..95b9ca5fdc 100644
--- a/build.proj
+++ b/build.proj
@@ -78,19 +78,8 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -99,9 +88,12 @@
-
-
-
+
+
+
+
+
+
@@ -112,16 +104,16 @@
-
-
+
+
-
-
+
+
@@ -169,24 +161,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -296,13 +270,9 @@
$(DotnetPath)dotnet test "@(ManualTestsProj)"
- --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)"
@@ -311,7 +281,18 @@
--blame-hang-dump-type full
--blame-hang-timeout 10m
- $(TestCommand.Replace($([System.Environment]::NewLine), " "))
+
+
+
+ $(TestCommand)
+ -p:TestSet=$(TestSet)
+
+
+
+ $([System.Text.RegularExpressions.Regex]::Replace($(TestCommand), "\s+", " "))
@@ -322,13 +303,10 @@
$(DotnetPath)dotnet test "@(ManualTestsProj)"
- --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)"
@@ -337,7 +315,8 @@
--blame-hang-dump-type full
--blame-hang-timeout 10m
- $(TestCommand.Replace($([System.Environment]::NewLine), " "))
+
+ $([System.Text.RegularExpressions.Regex]::Replace($(TestCommand), "\s+", " "))
@@ -384,31 +363,16 @@
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
+
+
diff --git a/src/Microsoft.Data.SqlClient.sln b/src/Microsoft.Data.SqlClient.sln
index d07bffd4c4..f58786f4d5 100644
--- a/src/Microsoft.Data.SqlClient.sln
+++ b/src/Microsoft.Data.SqlClient.sln
@@ -26,7 +26,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Address", "Microsoft.Data.S
{407890AC-9876-4FEF-A6F1-F36A876BAADE} = {407890AC-9876-4FEF-A6F1-F36A876BAADE}
EndProjectSection
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Data.SqlClient.ManualTesting.Tests", "Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj", "{45DB5F86-7AE3-45C6-870D-F9357B66BDB5}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Data.SqlClient.ManualTests", "Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj", "{45DB5F86-7AE3-45C6-870D-F9357B66BDB5}"
ProjectSection(ProjectDependencies) = postProject
{37431336-5307-4184-9356-C4B7E47DC714} = {37431336-5307-4184-9356-C4B7E47DC714}
EndProjectSection
diff --git a/src/Microsoft.Data.SqlClient/add-ons/AzureKeyVaultProvider/Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider.csproj b/src/Microsoft.Data.SqlClient/add-ons/AzureKeyVaultProvider/Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider.csproj
index 31f6b3fcb1..646de8a432 100644
--- a/src/Microsoft.Data.SqlClient/add-ons/AzureKeyVaultProvider/Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider.csproj
+++ b/src/Microsoft.Data.SqlClient/add-ons/AzureKeyVaultProvider/Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider.csproj
@@ -1,40 +1,45 @@
- Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider
Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider
- AzureKeyVaultProvider
- {9073ABEF-92E0-4702-BB23-2C99CEF9BDD7}
- netcoreapp
- netfx
- Debug;Release;
- AnyCPU;x86;x64
- $(ObjFolder)$(Configuration).$(Platform)\$(AddOnName)
- $(BinFolder)$(Configuration).$(Platform)\$(AddOnName)
- $(BinFolder)$(Configuration).$(Platform)\$(AssemblyName).xml
-
- false
+ Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider
MIT
true
- true
- true
-
-
- true
- $(SigningKeyPath)
+
+
+
+
+ $(BinFolder)$(Configuration).$(Platform)\AzureKeyVaultProvider
+ $(ObjFolder)$(Configuration).$(Platform)\AzureKeyVaultProvider
+ $(BinFolder)$(Configuration).$(Platform)\$(AssemblyName).xml
+
+
+
+ true
+ true
+
+
+
$(SigningKeyPath)
+
+ true
+ $(SigningKeyPath)
+
+
+
+
-
-
-
-
-
-
+
+
+
+
diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj
index bbbf05277b..db746e5d95 100644
--- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj
+++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj
@@ -1042,9 +1042,10 @@
Resources\ILLink.Substitutions.xml
+
Resources\Microsoft.Data.SqlCLient.SqlMetaData.xml
- Microsoft.Data.SqlClient.SqlMetaData.xml
+ Microsoft.Data.SqlClient.SqlMetaData.xml
diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/src/Microsoft.Data.SqlClient.csproj
index 2e38c79532..af0e42d814 100644
--- a/src/Microsoft.Data.SqlClient/src/Microsoft.Data.SqlClient.csproj
+++ b/src/Microsoft.Data.SqlClient/src/Microsoft.Data.SqlClient.csproj
@@ -74,9 +74,15 @@
-
+
+
+ Resources\Microsoft.Data.SqlCLient.SqlMetaData.xml
+ Microsoft.Data.SqlClient.SqlMetaData.xml
+
+
Microsoft.Data.SqlClient.Resources.Strings.resources
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 3cdd360113..2d195a13f9 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
@@ -7,8 +7,14 @@
-
+
+
+
+
+
+
+
@@ -16,16 +22,16 @@
-
-
+
+
Always
-
+
PreserveNewest
xunit.runner.json
-
+
diff --git a/src/Microsoft.Data.SqlClient/tests/ManualTests/AlwaysEncrypted/CspProviderExt.cs b/src/Microsoft.Data.SqlClient/tests/ManualTests/AlwaysEncrypted/CspProviderExt.windows.cs
similarity index 96%
rename from src/Microsoft.Data.SqlClient/tests/ManualTests/AlwaysEncrypted/CspProviderExt.cs
rename to src/Microsoft.Data.SqlClient/tests/ManualTests/AlwaysEncrypted/CspProviderExt.windows.cs
index 54a4b0c175..fb81905936 100644
--- a/src/Microsoft.Data.SqlClient/tests/ManualTests/AlwaysEncrypted/CspProviderExt.cs
+++ b/src/Microsoft.Data.SqlClient/tests/ManualTests/AlwaysEncrypted/CspProviderExt.windows.cs
@@ -2,6 +2,9 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
+// TODO: These tests are marked as Windows only for now but should be run for all platforms once the Master Key is accessible to this app from Azure Key Vault.
+#if _WINDOWS
+
using System.Collections.Generic;
using System.IO;
using System.Linq;
@@ -19,12 +22,7 @@ namespace Microsoft.Data.SqlClient.ManualTesting.Tests.AlwaysEncrypted
{
///
/// Always Encrypted public CspProvider Manual tests.
- /// TODO: These tests are marked as Windows only for now but should be run for all platforms once the Master Key is accessible to this app from Azure Key Vault.
///
-#if !NETFRAMEWORK
- [SupportedOSPlatform("windows")]
-#endif
- [PlatformSpecific(TestPlatforms.Windows)]
public class CspProviderExt
{
// [Fact(Skip="Run this in non-parallel mode")] or [ConditionalFact()]
@@ -142,3 +140,5 @@ private void ValidateResultSet(SqlDataReader sqlDataReader)
}
}
}
+
+#endif
diff --git a/src/Microsoft.Data.SqlClient/tests/ManualTests/AlwaysEncrypted/DateOnlyReadTests.cs b/src/Microsoft.Data.SqlClient/tests/ManualTests/AlwaysEncrypted/DateOnlyReadTests.netcore.cs
similarity index 99%
rename from src/Microsoft.Data.SqlClient/tests/ManualTests/AlwaysEncrypted/DateOnlyReadTests.cs
rename to src/Microsoft.Data.SqlClient/tests/ManualTests/AlwaysEncrypted/DateOnlyReadTests.netcore.cs
index 2cd1e18019..679fb4bf07 100644
--- a/src/Microsoft.Data.SqlClient/tests/ManualTests/AlwaysEncrypted/DateOnlyReadTests.cs
+++ b/src/Microsoft.Data.SqlClient/tests/ManualTests/AlwaysEncrypted/DateOnlyReadTests.netcore.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.Collections;
using System.Collections.Generic;
@@ -91,3 +93,5 @@ public IEnumerator