简体   繁体   English

Visual Studio 2010项目模板未显示

[英]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.

相关问题 .NET Framework 4.5未在Visual Studio 2010中显示 - .Net Framework 4.5 doesn't show up in Visual studio 2010 Visual Studio 2010-我的Windows窗体不会显示,除非我在之前或之后进行MessageBox.Show()调用 - Visual Studio 2010 - my Windows Form doesn't show up unless I make a MessageBox.Show() call before or after Visual Studio 2010中缺少项目模板 - Project template missing in Visual Studio 2010 模拟器不会在 Visual Studio 2010 中显示 - Emulator won't show in Visual Studio 2010 无法重命名Visual Studio 2010项目 - Can't rename Visual Studio 2010 Project 简单的T4模板在Visual Studio 2010中不起作用,但在MonoDevelop中起作用? - Simple T4 template doesn't work in Visual Studio 2010, but does in MonoDevelop? Visual Studio 2010 未检测到 .NET 4 - Visual Studio 2010 doesn't detect .NET 4 Visual Studio 2010 SP1安装项目不会安装Visual C ++ 2010运行时库的SP1 - Visual Studio 2010 SP1 setup project doesn't install SP1 of Visual C++ 2010 Runtime Libraries 在64位O / S中从Visual Studio 2010项目模板设置S#arp Architecture 1.6项目时出错 - Error setting up S#arp Architecture 1.6 project from the Visual Studio 2010 project template in a 64bit O/S 我无法在我的Visual Studio 2010安装中显示TestDriven.NET - I can't get TestDriven.NET to show up in my installation of Visual Studio 2010
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM