VS could not find 'Microsoft.VisualBasic.Strings'

Gnugs 25 Reputation points
2026-07-13T18:54:27.2166667+00:00

Designer window for .VB files in Visual Studio shows error for references to 'Microsoft.VisualBasic.Strings'. This error occurs randomly.

Developer technologies | VB
0 comments No comments

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Nancy Vo (WICLOUD CORPORATION) 7,410 Reputation points Microsoft External Staff Moderator
    2026-07-14T05:10:30.0433333+00:00

    Hello @Gnugs ,

    Thanks for your question.

    The Visual Studio Designer does not read your code directly. To load visual elements quickly, it reads from a temporary, background cache. Sometimes, this cache becomes corrupted or out of sync with your actual project. When this happens, the Designer temporarily "forgets" the path to standard, built-in libraries like Microsoft.VisualBasic.Strings.

    You can refer to these following steps:

    1. Please clean and rebuild
    • In Visual Studio, click Build in the top menu.
    • Click Clean Solution and let it finish.
    • Click Build again, then Rebuild Solution. Check if the error is gone.
    1. Delete the hidden memory folder
    • Close Visual Studio completely.
    • Open your project folder in Windows File Explorer.
    • Make sure you can see hidden files (check Hidden items under the View tab).
    • Delete the hidden folder named .vs.
    • Reopen your project. Visual Studio will safely rebuild its memory, and the Designer should work normally.

    I hope this addresses your question. If this response was helpful, please consider following the guidance to provide feedback. Thank you.

    Was this answer helpful?


Your answer

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