I am trying to follow these steps on MSDN for building a WRL-based C++ WinRT component. However in step #3, I am unable to find anything related to WRL in the results:
- In the Search online templates box in the upper right corner, type
WRL Class Library. When the template appears in the search results,
choose the OK button)
How can I get the WRL Project Template for Visual Studio 2013?
Update: The template on the VS Gallery has now been updated and is now available for Visual Studio 2013 as well.
It seems the WRL Project Template for Visual Studio has not yet been updated for Visual Studio 2013. There is a workaround however:
- Instead of acquiring the project template from VS2013, download it through the website. WRL Class Library.
- The downloaded file would be called WRLVSIXProject.vsix.
- Change the file extension. Rename it to WRLVSIXProject.zip
- Unzip the zip file.
- Open the file extension.vsixmanifest in a text editor
In the section, insert the following line after the first line:
<InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="12.0" />
Save the file and close it
- Zip all the contents of this folder back to a file called WRLVSIXProject.zip
- Rename the file back to WRLVSIXProject.vsix
- Double click on the file. It will now provide an option to install this project template for Visual Studio 2013
- Install and proceed
- Now when you do "File -> New Project" in VS2013, you will see an option called "WRLClassLibrary" under Visual C++ > Windows Store