-
Notifications
You must be signed in to change notification settings - Fork 788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling xunit.assert with XUNIT_SPAN define results in ambiguous calls #2793
Comments
This is expected behavior, and I can repro this with your test against xUnit.net v3.
I should point out that there's no way for us to disambiguate this with extra signatures; as soon as we add support for spans, you're out of luck with the compiler. You have at least three resolutions, and which you choose depends on what your goal is.
|
Thank you for that detailed response. The errors now make more sense to me. Feel free to close. |
When building xunit.assert.csproj (from the 2.5.1 tag with the TFM upgraded to
net6.0
) with theXUNIT_SPAN
define added and referencing that built assembly in my test application (using xunit.core/2.5.1), someAssert
method invocations result in ambiguous calls:Repro
TestProject1.zip -> I included the compiled xunit.assert assembly and reference it from the project file.
dotnet build
the TestProject1 projectcc @bradwilson
The text was updated successfully, but these errors were encountered: