Skip to content
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

Invalid Xunit dependency #1170

Open
mattleibow opened this issue Mar 14, 2024 · 1 comment
Open

Invalid Xunit dependency #1170

mattleibow opened this issue Mar 14, 2024 · 1 comment

Comments

@mattleibow
Copy link
Member

Hi folks, I am not sure if I am doing it wrong, but I am trying to use xharness 9.0.0-prerelease.24161.1 and that says it needs xunit.extensibility.execution 2.6.7-pre.5 - which does not exist so it moves up to 2.7.0.

However, this now has a problem since xunit broke api (they added a new default parameter) in 2.7: xunit/xunit@5ef7b75#diff-54b338f43759528f47a9544e61b807273f8442e7ec4d16a6df237dddf4bce126R43

Now, when I run, my app crashes because of a missing method

not sure why xharness is using a mysterious version - but probably can just use the stable 2.7.0 now?

i have no idea where the $(XUnitVersion) value comes from...

@akoeplinger
Copy link
Member

akoeplinger commented Mar 14, 2024

2.6.7-pre.5 exists on dotnet-public so I'm not sure why it's not being found for you: https://dev.azure.com/dnceng/public/_artifacts/feed/dotnet-public/NuGet/xunit.extensibility.execution/overview/2.6.7-pre.5

There were more of these breaking API changes (we found them while working on some xunit upgrades hence why we had to push this prerelease version of the package before a fix was was available on nuget.org) but recompiling dependencies "fixed" them.

The $(XUnitVersion) comes from here and you can override it: https://github.com/dotnet/arcade/blob/4e73daf131ef02e8264b0d3e850c4bdafe6e02b6/src/Microsoft.DotNet.Arcade.Sdk/tools/DefaultVersions.props#L86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants