You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created a minimal xUnit test project demonstrating the problem (the test project use the SDK-style csproj, and target net472).
when running the test with 'dotnet test' and on some machines also VSTest.Console, it will throw the following exception:
System.ArgumentException : The specified value is not valid in the 'SslProtocolType' enumeration.
This exception is not thrown by .NET Framework 4.7.2
Thanks for reporting, I see the same. I took your code and put it into net472 console app and it succeeded, and then put it in net451 app and it crashed with the error that you've shown. This is most likely due to testhost.exe being compiled against net451.
Reposting similar my repro, using your code in case you'd delete the repo before we fix this.
<!-- file net.csproj -->
<ProjectSdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<!-- change to net451 to see it fail, this shows that testhost.exe is also running using net451 rather than net472 -->
<TargetFramework>net472</TargetFramework>
</PropertyGroup>
</Project>
I have created a minimal xUnit test project demonstrating the problem (the test project use the SDK-style csproj, and target net472).
when running the test with 'dotnet test' and on some machines also VSTest.Console, it will throw the following exception:
System.ArgumentException : The specified value is not valid in the 'SslProtocolType' enumeration.
This exception is not thrown by .NET Framework 4.7.2
This issue does not occur with MSTest v2.
Project demonstrating the problem:
https://github.com/TalAloni/dotnettest-xunit
The text was updated successfully, but these errors were encountered: