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:
- Only available in Visual Studio 2015 CTP5 and above
- Only available when developing on Windows 8.1 and above
- 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:
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.
Once this is done, just reload your solution in VS2015 and voilà, you're able to use Timeline 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!