How can I see why a project cannot use "Application Timeline"

cbra-caa 0 Reputation points
2025-02-18T12:29:03.24+00:00

I have two startup projects in a solution - both are WPF applications that produce an .exe output tied to an xaml application.

I would like to use the Application Timeline feature to analyze my app and for one project I can select the feature, but for the other it is placed under "Not applicable tools". The projects does not have any striking differences I can distinguish from their .csproj files and the option is just unavailable without any feedback.

Is there some way to see why it is available to the first project but not the second?

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,828 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Hongrui Yu-MSFT 4,365 Reputation points Microsoft Vendor
    2025-02-19T05:31:24.7733333+00:00

    Hi, @cbra-caa. Welcome to Microsoft Q&A. 

    Prerequisites:

    1.Update the version of Visual Studio: Use Visual Studio 2022 . 2.Make sure the version of your WPF project is: Windows Presentation Foundation (.NET 4.0 and above).

    3.Make sure you do not check Instrumentation or .NET Object Allocation Tracking.

    Picture2

    Please try to open your WPF project using Startup Project instead of using Running Process... or Executable. When you open a WPF project in either Running Process... or Executable, Application Timeline will become Not Applicable Tools. You could consider opening two Visual Studio 2022 and opening Application Timeline in Startup Project mode.

    Picture1


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.