简体   繁体   English

我该怎么做:Visual Studio 没有显示错误描述

[英]how do i do that: Visual Studio shows no error description

first of all i dont know what the title error wants from me therefore its this strange title for the problem xD首先我不知道标题错误想从我这里得到什么因此它是这个问题的奇怪标题 xD

If I purposely mistype "Count" into "cont", I have an Error or Suggestion from VS that doesn't show any description.如果我故意将“计数”错误键入“继续”,我会收到来自 VS 的错误或建议,但不会显示任何描述。

看图片

But if i press the 'play' button i can see the error Description in the error window.但是如果我按下“播放”按钮,我可以在错误 window 中看到错误描述。

看图片

I have reinstalled VS and checked all Variables in Unity.我已经重新安装了 VS 并检查了 Unity 中的所有变量。 I have no idea whats the problem and i dont know what to search for.我不知道问题出在哪里,也不知道要搜索什么。 Cause the intellisense system works and it shows that there is an error at the line but not the error description:/导致智能感知系统工作,它显示该行有错误但没有错误描述:/

  • Red红色的

(What did you try and what were you expecting?) i dont know what to write here?! (你尝试了什么,你期待什么?)我不知道在这里写什么?! i say everything in the other input box我在另一个输入框中说出一切

From your description, after re-install VS the issue still exists, so the issue should come from the project level cache/settings instead of VS environment file lacking.从你的描述来看,重装VS后问题依然存在,所以问题应该出在项目级缓存/设置上,而不是缺少VS环境文件。

You can try to create a new project and writing your code as the simplest like this:您可以尝试创建一个新项目并编写最简单的代码,如下所示:

using System;
using System.Collections.Generic;

namespace ConsoleApp1
{
    internal class Program
    {
        static void Main(string[] args)
        {
            List<Upgrade> upgrades = new List<Upgrade>();
            var xxx = upgrades.cont;
        }
    }
    class Upgrade
    {
    }
}

If the issue disappears in the new project, I suggest you delete '.vs' directory, '.vs' directory stores settings and caches, it will be created when you open the solution at the first time.如果问题在新项目中消失,我建议你删除'.vs'目录,'.vs'目录存储设置和缓存,它会在你第一次打开解决方案时创建。 This directory is under the same folder level of.sln file.该目录与.sln文件同级文件夹下。 After deleting it, when you open the solution next time, this directory will be re-generated.删除后,下次打开解决方案时,会重新生成这个目录。 Intellisense caches are in this directory, that's why we suggest you to re-generate it. Intellisense 缓存在此目录中,这就是我们建议您重新生成它的原因。

If the issue doesn't disappear in the new project, please check your VS version, if it is not the lastest, please update it to the latest version.如果问题在新项目中没有消失,请检查你的VS版本,如果不是最新的,请更新到最新版本。

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

相关问题 如何在 Visual Studio 中复制错误消息 - How do I copy error messages in Visual Studio Rhino Mocks和Visual Studio:如何解决此错误? - Rhino Mocks and Visual Studio: How do I fix this error? 当Visual Studio中仅显示一个线程时,如何调试死锁? - How do I debug a deadlock when only one thread shows up in Visual Studio? Visual Studio显示不存在的错误 - Visual Studio shows errors which do not exist 如何在 Visual Studio 中附加数据库 - How do I attach a database in Visual Studio 如何设计看起来像Visual Studio错误列表的C#视觉主题 - How do I design a C# visual motif that looks like visual studio error list 我重命名了表单并忘记保存 Visual Studio C# - 如何修复此错误? - I renamed form and forgot to save visual studio C# - How do I fix this error? 如何防止 Visual Studio 在错误列表中复制错误? - How do I prevent Visual Studio from duplicating errors in the error list? 如何修复 MS Visual Studio package 安装错误? 版本 16.3.9 - How do I fix an MS visual studio package install error? Version 16.3.9 如何在 Visual Studio(社区)的 C# 中打开语法错误突出显示? - How do I turn on the syntax error highlighting in C# in Visual Studio (Community)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM