Skip to content

Commit 21da1fa

Browse files
committed
Issue 34304: #3223 Fix Functional test failures in CI
- Narrowed the scope of PowerShell cert usage to just the .NET Framework versions without the CertificateRequest API.
1 parent 172f62f commit 21da1fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.Data.SqlClient/tests/tools/Microsoft.Data.SqlClient.TestUtilities/Fixtures/CertificateFixtureBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected static X509Certificate2 CreateCertificate(string subjectName, IEnumera
5050

5151
rnd.NextBytes(passwordBytes);
5252
password = Convert.ToBase64String(passwordBytes);
53-
#if NET9_0
53+
#if NET || NET472_OR_GREATER
5454
X500DistinguishedNameBuilder subjectBuilder = new X500DistinguishedNameBuilder();
5555
SubjectAlternativeNameBuilder sanBuilder = new SubjectAlternativeNameBuilder();
5656
RSA rsaKey = RSA.Create(2048);

0 commit comments

Comments
 (0)