c++ - 找不到 Visual Studio 2013 的 WRL 项目模板

标签 c++ visual-studio-2012 windows-runtime windows-store-apps visual-studio-2013

我正在尝试关注 these steps on MSDN用于构建基于 WRL 的 C++ WinRT 组件。但是在第 3 步中,我无法在结果中找到与 WRL 相关的任何内容:

  • 在右上角的“搜索在线模板”框中,键入 WRL 类库。当模板出现在搜索结果中时, 选择确定按钮)

如何获取 Visual Studio 2013 的 WRL 项目模板?

最佳答案

更新:template on the VS Gallery现已更新,现在也可用于 Visual Studio 2013。


Visual Studio 的 WRL 项目模板似乎尚未针对 Visual Studio 2013 进行更新。但是有一个解决方法:

  1. 不是从 VS2013 获取项目模板,而是通过网站下载它。 WRL Class Library .
  2. 下载的文件将称为 WRLVSIXProject.vsix。
  3. 更改文件扩展名。将其重命名为 WRLVSIXProject.zip
  4. 解压缩 zip 文件。
  5. 在文本编辑器中打开文件扩展名 .vsixmanifest
  6. 在该部分中,在第一行之后插入以下行:

    <InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="12.0" />
    
  7. 保存文件并关闭

  8. 将此文件夹的所有内容压缩回名为 WRLVSIXProject.zip 的文件
  9. 将文件重命名回 WRLVSIXProject.vsix
  10. 双击该文件。它现在将提供一个选项来为 Visual Studio 2013 安装此项目模板
  11. 安装并继续
  12. 现在,当您在 VS2013 中执行“文件 -> 新建项目”时,您将在 Visual C++ > Windows Store 下看到一个名为“WRLClassLibrary”的选项

关于c++ - 找不到 Visual Studio 2013 的 WRL 项目模板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20752965/

相关文章:

c# - GeolocationAccessStatus 更改事件不会引发

c++ - fileno, errno : What does the "no" mean?(非母语英语)

c++ - Boost C++ 库生成奇怪的错误

c++ - 如何将变量移动到 lambda 表达式中?

windows - 使用构建事件停止构建并显示消息

C++/CX 限制

c++ - iPhone 应用程序 : Making a webpage accessible only to people using a specific app

asp.net-mvc - 在 VS 2012 中创建 MVC4 项目时出现 NuGet 错误

azure - 在 VS 2012 Express for web 中打开 .ccproj 文件

c# - 在 Metro 中查找和读取任意文件数据