-
Notifications
You must be signed in to change notification settings - Fork 333
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
Running /ListTests on a netstandard library hangs indefinitely #4392
Labels
needs-triage
This item should be discussed in the next triage meeting.
Comments
1 task
0xced
added a commit
to 0xced/testcontainers-dotnet
that referenced
this issue
Jun 4, 2023
By setting the `IsTestProject` property to false in Testcontainers.Commons.csproj Cause: referencing the `xunit` package enables `IsTestProject=true` which trigger a bug in vstest where [netstandard libraries hangs indefinitely][1]. This bug was addressed 5 days ago: [Fix execution gets stucks on single netstandard source][2] [1]: microsoft/vstest#4392 [2]: microsoft/vstest#4497
0xced
added a commit
to 0xced/testcontainers-dotnet
that referenced
this issue
Sep 12, 2023
By setting the `IsTestProject` property to false in Testcontainers.Commons.csproj Cause: referencing the `xunit` package enables `IsTestProject=true` which trigger a bug in vstest where [netstandard libraries hangs indefinitely][1]. This bug was addressed 5 days ago: [Fix execution gets stucks on single netstandard source][2] [1]: microsoft/vstest#4392 [2]: microsoft/vstest#4497
0xced
added a commit
to 0xced/testcontainers-dotnet
that referenced
this issue
Sep 12, 2023
By setting the `IsTestProject` property to false in Testcontainers.Commons.csproj Cause: referencing the `xunit` package enables `IsTestProject=true` which trigger a bug in vstest where [netstandard libraries hangs indefinitely][1]. This bug was addressed on May 30, 2023: [Fix execution gets stucks on single netstandard source][2] [1]: microsoft/vstest#4392 [2]: microsoft/vstest#4497
0xced
added a commit
to 0xced/testcontainers-dotnet
that referenced
this issue
Sep 18, 2023
By setting the `IsTestProject` property to false in Testcontainers.Commons.csproj Cause: referencing the `xunit` package enables `IsTestProject=true` which trigger a bug in vstest where [netstandard libraries hangs indefinitely][1]. This bug was addressed on May 30, 2023: [Fix execution gets stucks on single netstandard source][2] [1]: microsoft/vstest#4392 [2]: microsoft/vstest#4497
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Running vstest.console.exe /ListTests on a netstandard library hangs indefinitely.

Both the first and second invocations had to be killed with Ctrl+C
Steps to reproduce
Build a netstandard2.0 or 2.1 library with at least one class and run vstest.console.exe /ListTests on the output .dll
Expected behavior
vstest.console.exe exits with an error or after not finding any tests
Actual behavior
vstest.console.exe hangs indefinitely
Diagnostic logs
Trace level diagnostics
Environment
VSTest.Console.Exe version: 17.5.0
Visual Studio Community Version: 17.5.3
I couldn't tell if this was a dupe of #4326.
The same invocation works on the Visual Studio 2019 bundled version:
VSTest.Console.Exe version: 16.11.0
Visual Studio Professional Version: 16.11.23
The text was updated successfully, but these errors were encountered: