Enabling Timeline in VS2013 WPF Applications

In January, with the release of Visual Studio 2015 CTP5, Microsoft announced a whole host of new tooling for WPF applications.

One of the neatest features was one called Timeline, which allows you to dig deep into the UI Layer for performance bottlenecks.

I was eager to jump into this new feature but couldn't get the feature to appear in my existing WPF projects. For those that don't know, the requirements are as follows:

  1. Only available in Visual Studio 2015 CTP5 and above
  2. Only available when developing on Windows 8.1 and above
  3. Only available for WPF 4.0 and above (and Windows 8.1 app store)

My tool fit all these requirements but the analysis tool wasn't showing Timeline as an option:

Not displaying Timeline feature

I knew I had the right environment because I could create a new project and Timeline would appear as expected. So I got digging into the project files...

That's where I noticed this in the new WPF Project's .csproj file:


By just inserting this into your project file's top property group, you'll allow VS2015 to detect your project as WPF.

Modify your .csproj

Once this is done, just reload your solution in VS2015 and voilĂ , you're able to use Timeline as expected:

Now Timeline appears as expected

ProjectTypeGuid is not something new to Visual Studio, but it will be a hangup in your existing projects if you don't have it and want to use the new tooling that comes with CTP6!