Wednesday, 12 August 2015

Prism for the Windows Runtime Templates for Visual Studio 2015

I was recently asked if I had any plans to update the Prism WinRT templates to support VS2015. To be honest I was surprised that anyone is still using Prism WinRT, so had no plans to update the templates to VS2015. But in order to support people who’ve stuck with it, I decided to do an update. My intention was to add support for VS2015 to the existing template VSIX. However, this turned out not to be possible for two reasons:

  • Creating a Prism WinRT project relies on the Microsoft.VisualStudio.WinRT.TemplateWizards assembly. VS2012/2013 used v12 of this assembly, with VS2015 using v14. This presents a problem as a machine that only has VS2015 will only have the v14 assembly.
  • The location where the Prism WinRT project and item templates should reside has changed in VS2015.

The simplest solution was to build a new VSIX for VS2015.

I tried to upload the VSIX to the Visual Studio Gallery and it fails to upload, despite working when installing locally. This is because some of the paths in the VSIX would be too long if it’s installed on an Windows XP machine. While I can shorten the path a little, it’s not enough to pass Visual Studio Gallery validation. There are other solutions available but it’s not worth investing the time to solve the issue for these templates, when there’ll be a brand new set for Prism 6.

So in the meantime, if you want Prism WinRT templates for VS2015 you can download them from here.

5 comments:

  1. Do you know anything about Prism for UWP release?

    ReplyDelete
    Replies
    1. It's being worked on:

      http://briannoyes.net/2015/07/06/prism-windows-for-windows-10-uwp-initial-port-complete/

      Delete
  2. The download link has expired. :( Any chance you can upload to a more permanent location?

    ReplyDelete
    Replies
    1. https://onedrive.live.com/redir?resid=1B98B9A3CC9EB1AA!179&authkey=!AN6_EQMGm-WOERM&ithint=file%2cvsix

      Delete
    2. Many thanks!

      Delete