Trympet
Trympet

Reputation: 75

Viewing Task information not working .NET 5

I am working on a .NET 5 WPF app, and I am trying to view task information via the Debug->Windows->Tasks and the Debug->Windows->Parallel Stacks pane.

However, the Tasks pane is completly blank, and the Parallel Stacks pane gives the following error:

Viewing Task information for .NET Core 2.1/2.2 is not supported for live processes. You can either re-target a newer version of the runtime, or save a minidump and view task information for your application.

This is very strange, since the application is targetting .NET 5. This is also confirmed by running AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName while the application is running, which returns ".NETCoreApp,Version=v5.0".

This happens for both x64 and x86 platform targets. This issue has also been reproduced on two different systems.

The TFM for the startup application is net5.0-windows10.0.17763.0.

.NET SDK: 5.0.101
Runtime: 5.0.1
Visual Studio: 16.8.3

Edit: Turns out this is easily reproducable, and affects all projects that target net5.0-windows*. Therefore, please refer to my issues on GitHub and Visual Studio Developer Community instead.

Upvotes: 0

Views: 307

Answers (1)

Zodman
Zodman

Reputation: 3904

I always forget that the Parallel Stacks View defaulst to "Tasks" and shows this error. When I switch the Parallel Stacks View from "Tasks" to "Threads" I get the information I need.

While this isn't a solution to the specific problem in the post I think it's worth mentioning because it always catches me out (and I end up on this Question looking for the answer).

Upvotes: 0

Related Questions