gpt4 book ai didi

visual-studio-2008 - Visual Studio 2008 类模板丢失

转载 作者:行者123 更新时间:2023-12-02 21:22:33 25 4
gpt4 key购买 nike

“添加新项目”对话框中缺少我的类模板。

此文件存在并且内部包含模板文件

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\Code\1033\Class.zip

但是缓存文件夹是空的:

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplatesCache\CSharp\Code\1033\Class.zip

我已经尝试过

手动将文件复制到缓存文件夹

删除缓存文件夹以让 VS 重新创建它

devenv/installvstemplates

devenv/重置设置

devenv.exe/resetuserdata

但没有显示任何内容,并且 ItemTemplatesCache 中的 Class.zip 文件夹仍为空

最佳答案

回顾:

您提到运行 devenv.exe/installvstemplates 并且 Class.zip 文件位于 ItemTemplates 文件夹中,并且该描述来自MSDN 是:

Registers project or item templates that are located in \Common7\IDE\ProjectTemplates or \Common7\IDE\ItemTemplates so they can be accessed through the New Project and Add New Item dialog boxes.

然而,当您通过添加新项创建新类时,类项模板仍未注册

<小时/>

也许尝试完全删除(首先备份)位于 C:\Users\[User]\AppData\Local\Microsoft\VisualStudio\9.0 的 Visual Studio 2008 应用程序设置,或以其他用户身份登录Windows 并查看是否存在相同的问题。

<小时/>

当然,作为最后的手段,重新安装 VS 2008

关于visual-studio-2008 - Visual Studio 2008 类模板丢失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5468247/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com