VS 2022 Not showing red squiggles under errors when i debug projects saved on network disk

Willis1962 30 Reputation points
2024-06-21T05:42:45.41+00:00

User's image

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,475 questions
{count} votes

Accepted answer
  1. Frank636 95 Reputation points
    2024-06-26T19:49:26.9433333+00:00

    Workaround:

    Instead of using the remote repository's shared network path (\\ComputerName...), give it a drive letter (Z:...) with File Explorer's "Map network drive.."

    The error squiggles, etc. go missing even if the project is on the local machine but the network path is used.

    Frank

    2 people found this answer helpful.

3 additional answers

Sort by: Most helpful
  1. Jing Zhou 7,760 Reputation points Microsoft External Staff
    2024-06-21T09:29:13.0266667+00:00

    Hello,

    Thank you for posting in Q&A forum.

    Please try the following:

    1. Update your VS2022 to the latest version with Visual Studio Installer and launch it again.
    2. Enter “devenv /ResetSettings” at Developer Command Prompt for VS 2022 to restore your Visual Studio default setting.
    3. Close all running VS instances and delete the hidden .vs, bin and obj folders in the project folder.
    4. Rebuild the project.
    5. Create a new project and check that it works properly.
    6. Ensure you are using "Build + IntelliSense" in the Error List window.

    Best regards,

    Jill Zhou


    If the Answer is helpful, please click "Accept Answer" and upvote it

    1 person found this answer helpful.

  2. edward 10 Reputation points
    2025-01-08T11:14:28.0566667+00:00

    I experienced the same problem. I had error squiggles in VS Code, but the error squiggles weren't showing in Visual Studio, even though I had all the necessary tools enabled. Then, I found the solution: I had to open the project folder through file ->open -> project/solution -> and then open the .sln file in the project folder. This made the squiggles work right away

    1 person found this answer helpful.
    0 comments No comments

  3. Anonymous
    2024-06-21T07:26:23.6033333+00:00

    Hi @Willis1962 , Welcome to Microsoft Q&A,

    Go to Tools->Options and turn on Show error squiggles.

    https://learn.microsoft.com/en-us/visualstudio/ide/find-and-fix-code-errors?view=vs-2022User's image

    Best Regards,

    Jiale


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.