HttpMock uses a Kestrel server, which is compatible with .NET 6.0.
Actual Behavior
HttpMock uses MockHttpServer, which is only fully compatible with .NET Framework 4.6.1 to 4.8.1, leading to warning NU1701.
Mention any other details that might be useful
Steps to reproduce the behavior
The log given by the failure.
Taken from the appveyor build output (Visual Studio shows something similar):
Determining projects to restore...
C:\projects\yaapii-http\src\Yaapii.Http\Yaapii.Http.csproj : warning NU1701: Package 'MockHttpServer 1.4.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net6.0'. This package may not be fully compatible with your project.
Restored C:\projects\yaapii-http\src\Yaapii.Http\Yaapii.Http.csproj (in 4.07 sec).
Determining projects to restore...
C:\projects\yaapii-http\src\Yaapii.Http\Yaapii.Http.csproj : warning NU1701: Package 'MockHttpServer 1.4.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net6.0'. This package may not be fully compatible with your project. [C:\projects\yaapii-http\tests\Test.Yaapii.Http\Test.Yaapii.Http.csproj]
C:\projects\yaapii-http\tests\Test.Yaapii.Http\Test.Yaapii.Http.csproj : warning NU1701: Package 'MockHttpServer 1.4.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net6.0'. This package may not be fully compatible with your project.
Restored C:\projects\yaapii-http\tests\Test.Yaapii.Http\Test.Yaapii.Http.csproj (in 2.82 sec).
Expected Behavior
HttpMock uses a Kestrel server, which is compatible with .NET 6.0.
Actual Behavior
HttpMock uses MockHttpServer, which is only fully compatible with .NET Framework 4.6.1 to 4.8.1, leading to warning NU1701.
Mention any other details that might be useful
Steps to reproduce the behavior
The log given by the failure.
Taken from the appveyor build output (Visual Studio shows something similar):