-
Notifications
You must be signed in to change notification settings - Fork 316
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
dotnet test with .NET Framework on Linux/macOS broken w/ .NET SDK 7.0.400 #4657
Comments
This is probably the same issue as #4549 and #4627, we inserted fix for that into servicing on 7.0.4xx, and it should be in the next service release. (this has links to the insertion pr #4549 (comment)) Could you try the preview build of 7.0.401 from here please? https://github.com/dotnet/installer#table |
Wait, looking at the binaries in 7.0.401, the have the same version as what you show in the console. Something is wrong. |
The installer pipeline probably does not produce new builds of 7.0.4xx right now, our insertion is in sdk source code, but the latest insertion from sdk to installer is pretty old. dotnet/installer#16954 So right now you don't have a way to test it I think. 😞 |
@nohwnd No problem, let me know if/when you have something for me to test. |
Also agree that this seem to be the same as #4549. |
Checked it again today. The installer build is still old. |
Strange, our app build pipeline failed last week on tests, then started working. But now today I got the same error again: |
Are you building on hosted azdo images? Maybe you've hit an agent that already updated, and then hit another one that was not updated yet, and then an updated one again? |
Yeah, Azure DevOps build pipeline and using:
|
I got this exception on my source tests: |
7.0.401 was released, I checked the nuget and it has 17.7.1 vstest.console, tried running net481 tests on ubuntu (WSL) and it works. So imho fixed, please someone confirm :)
|
Description
Running
dotnet test --framework net472
with xunit/xunit.analyzers:This appears to be a non-Windows + .NET Framework (Mono) problem, only with the latest .NET SDK 7.
(It may be coincidence, but I noticed that .NET SDK 7.0.400 ships
Microsoft (R) Test Execution Command Line Tool Version 17.7.0-preview-23364-03+bc17bb9693cfc4778ded51aa0ab7f1065433f989
which feels suspect given that it's a preview version and not an RTM version. I have verified, though, that this same version is used on Windows as well.)Example GitHub Actions failure run: https://github.com/xunit/xunit.analyzers/actions/runs/5882040465
Steps to reproduce
From Linux or macOS:
git clone --recurse-submodules https://github.com/xunit/xunit.analyzers
cd xunit.analyzers
git switch --detach 513113a87fbbe57246d852e68b2074318a1da748
dotnet test src/xunit.analyzers.tests --framework net472
Expected behavior
With 7.0.307:
Actual behavior
With 7.0.400:
Diagnostic logs
https://gist.github.com/bradwilson/be699930236685260ced3eb003c27697
Environment
dotnet --info
mono --version
The text was updated successfully, but these errors were encountered: