Skip to content

Commit 69c0d4c

Browse files
authored
.NET 6 & 7 build fix (#3475)
1 parent 3d5cdf0 commit 69c0d4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/benchmarks/micro/libraries/System.Net.Sockets/Perf.Socket.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ public async Task ReceiveFromAsyncThenSendToAsync_Task()
139139
}
140140
}
141141

142+
#if NET8_0_OR_GREATER // APIs introduced in .NET 8: https://github.com/dotnet/runtime/issues/30797
142143
[Benchmark]
143144
public async Task ReceiveFromAsyncThenSendToAsync_SocketAddress()
144145
{
@@ -160,6 +161,7 @@ public async Task ReceiveFromAsyncThenSendToAsync_SocketAddress()
160161
await r;
161162
}
162163
}
164+
#endif
163165

164166
[Benchmark]
165167
public void SendToThenReceiveFrom()

0 commit comments

Comments
 (0)