Skip to content

Commit 2f6bf46

Browse files
Skip API approval test on non-.NET Core platforms
To avoid platform-specific limitations of the framework.
1 parent c90d126 commit 2f6bf46

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

projects/Unit/APIApproval.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ namespace RabbitMQ.Client.Unit
5050
public class APIApproval
5151
{
5252
[Test]
53+
#if !NETCOREAPP
54+
[Ignore("This test is limited to .NET Core targets")]
55+
#endif
5356
public Task Approve()
5457
{
5558
string publicApi = typeof(ConnectionFactory).Assembly.GeneratePublicApi(new ApiGeneratorOptions { ExcludeAttributes = new[] { "System.Runtime.Versioning.TargetFrameworkAttribute" } });

0 commit comments

Comments
 (0)