简体   繁体   English

Visual Studio 2022:VS 启动时“任务列表”window 为空

[英]Visual Studio 2022: "Task List" window is empty when VS starts

Found several similar questions for older VS versions, some especially mentioning C++. I'm getting the effect with C# as well as VB.Net projects in Microsoft Visual Studio Community 2022 (64-bit) - Version 17.3.3针对较旧的 VS 版本发现了几个类似的问题,其中一些特别提到了 C++。我正在使用 C# 以及 Microsoft Visual Studio Community 2022(64 位)- 版本 17.3.3 中的 VB.Net 项目获得效果

Steps to reproduce:重现步骤:

  • Open a new VS2022 IDE instance新建一个VS2022 IDE实例
  • "Create new Project", say type "ASP.Net Core Web App (C#)" or a "Console App (Visual Basic)" “创建新项目”,说类型“ASP.Net Core Web App (C#)”或“Console App (Visual Basic)”
  • Open the View -> "Task List" window打开视图 -> “任务列表” window
  • Open any code file, eg WebApplication1\Pages\Index.cshtml.cs打开任何代码文件,例如 WebApplication1\Pages\Index.cshtml.cs
  • In C# add a line在 C# 添加一行
    //TODO: find this in the IDE's "Task List" window // in the OnGet() event handler
    ' Or TODO: something ' in VB.Net code
  • Observed: the TODO line appears in the Task List window as expected //Okay观察到:TODO 行按预期出现在任务列表 window 中 //Okay
  • Save, and close the IDE instance保存,关闭 IDE 实例
  • Open a the same newly created "WebApplication1" solution in a new VS IDE instance.在新的 VS IDE 实例中打开相同的新创建的“WebApplication1”解决方案。
  • Observed: Task List window is empty although the TODO line still exists // not Okay观察到:任务列表 window 是空的,尽管 TODO 行仍然存在 // 不行
  • As soon as one edits any code file, e,g.一旦编辑任何代码文件,例如WebApplication1\Pages\Error.cshtml.cs, even by just adding and removing a single space WebApplication1\Pages\Error.cshtml.cs,即使只是添加和删除一个空格
  • Observed: unexpectedly (all if there are more than just one) TODO lines magically reappear in the Task List观察到:出乎意料(如果不止一个,则所有)TODO 行神奇地重新出现在任务列表中

Actual question: Is that a reproducible VS Bug or is it just me / my PC/setup?实际问题:这是一个可重现的 VS Bug 还是只是我/我的 PC/设置?

Doing a "Visual Studio Installer" -> "Repair" seems to have cured the symptom so far fortunately.幸运的是,执行“Visual Studio 安装程序”->“修复”似乎已经治愈了这种症状。 (That part took a while though and also demanded an O/S restart. Reinstalling one Extension and arranging desired IDE/Debug windows layout afterwards was easy.) (虽然这部分需要一段时间,并且还需要重新启动操作系统。重新安装一个扩展并在之后安排所需的 IDE/Debug windows 布局很容易。)

This also happened to me.这也发生在我身上。 I have been using VS 2022 for a while, and today is the first time I've seen it.用VS 2022有一段时间了,今天第一次见。 Making a small code edit didn't change anything, but just closing and restarting VS did.进行一个小的代码编辑并没有改变任何东西,但只是关闭并重新启动 VS。

I have been clearing caches and cleaning solutions today.我今天一直在清理缓存和清理解决方案。 I have also had both 2019 and 2022 open, but that hasn't caused a problem (that I've noticed) before.我也打开了 2019 年和 2022 年,但这并没有造成问题(我已经注意到)。

it's a problem from me too这也是我的问题
on some projects it works, in others don't在某些项目上它有效,在其他项目中则无效
doesn't matter if i restart vs or re-paste the file不管我重新启动 vs 还是重新粘贴文件
task list window doesn't event fill the combo up left任务列表 window 没有事件填充左侧的组合
it's like it's crashing entirely就像它完全崩溃了

In the (hidden).vs\ProjectEvaluation\ folder, deleting the older versions of the files.metadata.vx.y and.projects.vx.y of the project in question solved the problem for me.在 (hidden).vs\ProjectEvaluation\ 文件夹中,删除相关项目的 files.metadata.vx.y 和 .projects.vx.y 的旧版本解决了我的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM