Skip to content

Warning regarding the usage of MSTestThreadApartmentState set to STA in .NET 8.0 #4168

Closed Answered by Evangelink
Rayffer asked this question in Q&A
Discussion options

You must be logged in to vote

Found it, the warning is coming from https://github.com/microsoft/vstest because this platform doesn't support the entry for .NET Core but we are handling it on MSTest side. You can safely ignore the warning, I don't think VSTest will want to remove the warning as from the platform point of view this setting is not handled.

I would recommend you to consider migrating to our new testing platform https://devblogs.microsoft.com/dotnet/introducing-ms-test-runner/ which would not have the warning and provides improved stability, features and performance.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Rayffer
Comment options

@Evangelink
Comment options

Answer selected by Evangelink
@Rayffer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants