diff --git a/build.proj b/build.proj
index 95b7ac947d..c470970f03 100644
--- a/build.proj
+++ b/build.proj
@@ -178,21 +178,109 @@
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+ $(DotnetPath)dotnet test "@(FunctionalTestsProj)"
+ --no-build
+ -v n
+ -p:Configuration=$(Configuration)
+ -p:Target$(TFGroup)Version=$(TF)
+ -p:ReferenceType=$(ReferenceType)
+ -p:TestSet=$(TestSet)
+ -p:TestTargetOS=Windows$(TargetGroup)
+ --collect "Code coverage"
+ --results-directory $(ResultsDirectory)
+ --filter "category!=non$(TargetGroup)tests&category!=failing&category!=nonwindowstests"
+ --logger:"trx;LogFilePrefix=Functional-Windows$(TargetGroup)-$(TestSet)"
+
+ $(TestCommand.Replace($([System.Environment]::NewLine), " "))
+
+
+
+
+
+
+
+
+
+ $(DotnetPath)dotnet test "@(FunctionalTestsProj)"
+ --no-build
+ -v n
+ -p:Configuration=$(Configuration)
+ -p:TargetNetCoreVersion=$(TF)
+ -p:ReferenceType=$(ReferenceType)
+ -p:TestSet=$(TestSet)
+ -p:TestTargetOS=Unixnetcoreapp
+ --collect "Code coverage"
+ --results-directory $(ResultsDirectory)
+ --filter "category!=nonnetcoreapptests&category!=failing&category!=nonlinuxtests&category!=nonuaptests"
+ --logger:"trx;LogFilePrefix=Functional-Unixnetcoreapp-$(TestSet)"
+
+ $(TestCommand.Replace($([System.Environment]::NewLine), " "))
+
+
+
+
+
+
+
+
+
+
+
+
+ $(DotnetPath)dotnet test "@(ManualTestsProj)"
+ --no-build
+ -v n
+ -p:Configuration=$(Configuration)
+ -p:Target$(TFGroup)Version=$(TF)
+ -p:ReferenceType=$(ReferenceType)
+ -p:TestSet=$(TestSet)
+ -p:TestTargetOS=Windows$(TargetGroup)
+ --collect "Code coverage"
+ --results-directory $(ResultsDirectory)
+ --filter "category!=non$(TargetGroup)tests&category!=failing&category!=nonwindowstests"
+ --logger:"trx;LogFilePrefix=Manual-Windows$(TargetGroup)-$(TestSet)"
+
+ $(TestCommand.Replace($([System.Environment]::NewLine), " "))
+
+
+
-
-
-
-
-
+
+
+
+
+ $(DotnetPath)dotnet test "@(ManualTestsProj)"
+ --no-build
+ -v n
+ -p:Configuration=$(Configuration)
+ -p:TargetNetCoreVersion=$(TF)
+ -p:ReferenceType=$(ReferenceType)
+ -p:TestSet=$(TestSet)
+ -p:TestTargetOS=Unixnetcoreapp
+ --collect "Code coverage"
+ --results-directory $(ResultsDirectory)
+ --filter "category!=nonnetcoreapptests&category!=failing&category!=nonlinuxtests&category!=nonuaptests"
+ --logger:"trx;LogFilePrefix=Manual-Unixnetcoreapp-$(TestSet)"
+
+ $(TestCommand.Replace($([System.Environment]::NewLine), " "))
+
+
+
+
diff --git a/eng/pipelines/common/templates/steps/pre-build-step.yml b/eng/pipelines/common/templates/steps/pre-build-step.yml
index fed1a8d93e..626042670e 100644
--- a/eng/pipelines/common/templates/steps/pre-build-step.yml
+++ b/eng/pipelines/common/templates/steps/pre-build-step.yml
@@ -29,4 +29,4 @@ steps:
displayName: 'Start SQLBrowser'
- task: NuGetToolInstaller@1
- displayName: 'Use NuGet '
+ displayName: 'Use NuGet'
diff --git a/eng/pipelines/common/templates/steps/update-config-file-step.yml b/eng/pipelines/common/templates/steps/update-config-file-step.yml
index 78a1cfebe3..f49e552323 100644
--- a/eng/pipelines/common/templates/steps/update-config-file-step.yml
+++ b/eng/pipelines/common/templates/steps/update-config-file-step.yml
@@ -126,7 +126,7 @@ parameters:
steps:
# All properties should be added here, and this template should be used for any manipulation of the config.json file.
-- powershell: |
+- pwsh: |
$jdata = Get-Content -Raw "config.default.json" | ConvertFrom-Json
foreach ($p in $jdata)
{
@@ -186,7 +186,7 @@ steps:
displayName: 'Update config.json'
- ${{ if eq(parameters.debug, true) }}:
- - powershell: |
+ - pwsh: |
$jdata = Get-Content -Raw "config.json" | ConvertFrom-Json
foreach ($p in $jdata)
{
diff --git a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/AlwaysEncryptedTests/SqlColumnEncryptionCertificateStoreProviderShould.cs b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/AlwaysEncryptedTests/SqlColumnEncryptionCertificateStoreProviderShould.cs
index 3a220cd9c7..216afef784 100644
--- a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/AlwaysEncryptedTests/SqlColumnEncryptionCertificateStoreProviderShould.cs
+++ b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/AlwaysEncryptedTests/SqlColumnEncryptionCertificateStoreProviderShould.cs
@@ -230,7 +230,16 @@ public void EncryptAndDecryptDataSuccessfully()
}
[Theory]
- [CEKEncryptionReversalParameters]
+ [MemberData(
+ nameof(CEKEncryptionReversalData)
+#if NETFRAMEWORK
+ // .NET Framework puts system enums in something called the Global
+ // Assembly Cache (GAC), and xUnit refuses to serialize enums that
+ // live there. So for .NET Framework, we disable enumeration of the
+ // test data to avoid warnings on the console when running tests.
+ , DisableDiscoveryEnumeration = true
+#endif
+ )]
[PlatformSpecific(TestPlatforms.Windows)]
public void TestCEKEncryptionReversal(StoreLocation certificateStoreLocation, String certificateStoreNameAndLocation)
{
@@ -381,8 +390,13 @@ public void TestCustomKeyProviderListSetter()
}
[Theory]
+ [MemberData(
+ nameof(ValidCertificatePathsData)
+#if NETFRAMEWORK
+ , DisableDiscoveryEnumeration = true
+#endif
+ )]
[PlatformSpecific(TestPlatforms.Windows)]
- [ValidCertificatePathsParameters]
public void TestValidCertificatePaths(string certificateStoreNameAndLocation, object location)
{
StoreLocation certificateStoreLocation;
@@ -505,33 +519,25 @@ public override IEnumerable