diff --git a/dotnet/test/DotNetCoreUnitTest/Domain/PathToUrlTest.cs b/dotnet/test/DotNetCoreUnitTest/Domain/PathToUrlTest.cs index 8c4a6bb67..dbb902eb2 100644 --- a/dotnet/test/DotNetCoreUnitTest/Domain/PathToUrlTest.cs +++ b/dotnet/test/DotNetCoreUnitTest/Domain/PathToUrlTest.cs @@ -1,3 +1,4 @@ +using System.Runtime.InteropServices; using GeneXus.Application; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Features; @@ -11,6 +12,10 @@ public class PathToUrlTest [Fact] public void PathToUrl() { + if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + { + return; + } DefaultHttpContext httpContext = new DefaultHttpContext(); httpContext.Features.Set(new HttpRequestFeature());