VS 2019 community failure

Socrates Anibal Rivera Rivera 46 Reputation points
2021-08-01T02:50:02.897+00:00

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.
Regards,
S.A. Rivera R.
119602-attachment.pdf

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
    2021-08-01T05:29:30.247+00:00

    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
    2021-08-02T02:28:29.41+00:00

    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.

    119702-image.png

    Sincerely,
    Peng
    *
    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