Multitude of Visual Studio Errors
Whenever I create a new script in Unity, when it opens in Visual Studio, there are errors everywhere. The red lines under System and UnityEngine at the top say "Using directive is unnecessary." The error under MonoBehavior says "The type or namespaces 'MonoBehavior' could not be found." Everything else says "Predefined type 'System.something (e.g. System.Void)' is not defined or imported."
Everything works right when I run in Unity, but it's a hassle to code with squiggly red lines everywhere.
try opening visual tudio installer and double check that unity tools are installed for your visual version
I think I might have messed up the assembly c sharp file or something because when I imported the scenes unto a new unity project and opened the scripts, everything worked fine.
Your answer
Follow this Question
Related Questions
Visual Studio 2015 keeps crashing... 1 Answer
Visual Studio for Mac External Drive Sharing Violation 1 Answer
How do I fix this error when building my project to my Xbox One via Visual Studio? 0 Answers
empty uwp game project fails nearly in all certification tests 1 Answer
Visual Studio Errors: MSB3073 & LNK1181 0 Answers