Visual Studio 2010 项目模板不显示
我尝试在从 vs2010 导出项目模板后通过提取它并在编辑后再次压缩它来编辑它。 但之后它不会出现在视觉工作室的新项目对话框中。
所以我又试了一次,没有编辑。只需再次提取并压缩即可。我什至使用了 Windows zip 机制,但仍然无法工作。只有导出的模板才能正常工作。
我也尝试过这里写的: http://msdn.microsoft.com/en-us/library/ms185298.aspx 无济于事。
那么是否有一些没人告诉我的魔法咒语可以让它发挥作用呢?
I tried to edit a project template after exporting it from vs2010 by extracting it and after editing compressing it again.
But after that it won't show up in visual studios new project dialog.
So I tried it again, without the editing. Just extract and compress again. I even used windows zip mechanisms, but still wont work. Only the exported template works fine.
I also tried what's written here:
http://msdn.microsoft.com/en-us/library/ms185298.aspx
to no avail.
So is there some magic incantation nobody told me about to get it to work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
请小心执行 http://msdn.microsoft.com/en-us 中的步骤 7 /library/ms185298.aspx。
不要将整个文件夹发送到 zip 文件...仅发送其中的文件!
Be carefull following Step 7 in http://msdn.microsoft.com/en-us/library/ms185298.aspx.
DON'T send the whole Folder to a zip file... only the files inside!
实际上,有有记录的方法来获取 VS只需将压缩模板部署到 ProjectTemplates\etc 即可填充模板缓存文件夹。文件夹:
适用于 2005 年以来的所有 VS 版本(甚至可能更早的版本)。
Actually, there's a documented way to get VS to populate the template cache folder by just deploying the zipped template to the ProjectTemplates\etc. folder:
Works on every version of VS since 2005 (and possibly even earlier versions).
实际上有两个地方保存模板。 *Templates 和 *TemplatesCache(其中 * 是项目或项目)。您需要更新这两个地方的模板。请注意,缓存将从 zip 文件中提取的模板存放在与 zip 文件同名的子目录中。
There are actually two places where templates are kept. *Templates and *TemplatesCache (where * is Item or Project). You need to update the template in both places. Note, the cache has the templates extracted from the zip file in a subdirectory that has the same name as the zip.