Skip to content

Commit f840a76

Browse files
committed
Try to stabilize Compile_EnvironmentSource test on macOS Azure Pipelines agents
1 parent fb8eae4 commit f840a76

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

shared/Utilities/HostNameUtility.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ internal static class HostNameUtility
77
public static string GetFullyQualifiedDomainName()
88
{
99
IPHostEntry dnsEntry;
10-
#if NET
10+
#if NET || NETSTANDARD
1111
try
1212
#endif
1313
{
1414
dnsEntry = Dns.GetHostEntry("");
1515
}
16-
#if NET
16+
#if NET || NETSTANDARD
1717
catch (System.Net.Sockets.SocketException exception) when (System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.OSX) && exception.Message == "nodename nor servname provided, or not known")
1818
{
1919
// For some weird reason this happens quite a lot on Azure Pipelines macOS agents...

0 commit comments

Comments
 (0)