[英]Visual Studio 2010 Project Template doesn't show up
I tried to edit a project template after exporting it from vs2010 by extracting it and after editing compressing it again. 我尝试编辑项目模板后,通过提取它并在编辑后再次压缩它来从vs2010导出它。 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.
我甚至使用Windows拉链机制,但仍然无法工作。 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. 我也试过这里写的: http : //msdn.microsoft.com/en-us/library/ms185298.aspx无济于事。
So is there some magic incantation nobody told me about to get it to work? 那么有没有人告诉我要让它发挥作用的一些神奇的咒语?
Be carefull following Step 7 in http://msdn.microsoft.com/en-us/library/ms185298.aspx . 请注意http://msdn.microsoft.com/en-us/library/ms185298.aspx中的步骤7。
DON'T send the whole Folder to a zip file... only the files inside! 不要将整个文件夹发送到zip文件...只有里面的文件!
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. 实际上,通过将压缩模板部署到ProjectTemplates \\ etc,有一种记录方式可以让VS填充模板缓存文件夹。 folder:
夹:
<Path to devenv.exe> /installvstemplates
Works on every version of VS since 2005 (and possibly even earlier versions). 适用于自2005年以来的每个VS版本(甚至可能是早期版本)。
There are actually two places where templates are kept. 实际上有两个地方可以保存模板。 *Templates and *TemplatesCache (where * is Item or Project).
*模板和* TemplatesCache(其中*是Item或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.
请注意,缓存具有从zip文件中提取的模板,该子目录与zip具有相同的名称。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.