VS 2019 community failure

Socrates Anibal Rivera Rivera 46 Reputation points

I have a strange situation with one project.
The intellisense is saying contradictory things.
First line says everything is ok but last line says everything is wrong (which gets confirmed by rebuild).
Without judging my code (right or wrong) I think this is incorrect behavior.
I have attached some images to show the point.
(I can not find the Restore nuget packages in my VS version -latest, twice repaired just in case-).
Thanks in advance.
S.A. Rivera R.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,717 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Viorel 113.2K Reputation points

    Usually, the popup shows details about the hovered item. (In this case, it shows information about Task.Delay). This is suitable when you are writing code and it is not finished yet. But is there are errors, the popup also shows the error details. Sometimes the error can be easier understood having the information from the first part. This seems to be by design. What behaviour do you expect?

  2. PengGe-MSFT 3,336 Reputation points

    Hi, @Socrates Anibal Rivera Rivera

    Welcome to Microsoft Q&A!

    I divided the information in the picture into three parts.

    Part 1: Information about the Delay method, method name, parameter list, number of overloads, and description of the function of the method.

    Part 2: Information about the return value.

    Part 3: The name of the exception, and the details of the exception.

    This is not contradictory.


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread