Search Unity

Errors with Visual Studio 2019 and C#

Discussion in 'Scripting' started by Paranoidweazle, Jan 17, 2021.

  1. Paranoidweazle

    Paranoidweazle

    Joined:
    Dec 27, 2020
    Posts:
    5
    I've recently reinstalled Unity 3d and Visual Studio 2019. I get a host of errors when I try to script with Unity. See picture below.
    UnityIssues.png
    The issues always seem to circle around TestEvent.cs and TestsCallback.cs.
    However, it will randomly show errors in my code, such as "; expected" on an if statement (even if I have curly brackets attached).

    The code works however. It just makes it hard for me to look for errors.
    I'd appreciate it if anyone else has run into this issue and found a work-around to it or could offer some tips. Let me know if you need anymore information.

    Thank you!

    Running the following:
    Unity 2019.4.18f1
    VS 16.8.4 with:
    C#
    Debugger for Unity
    Unity Code Snippets
    Unity Tools
     
  2. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,188
    It looks like they are from the rider package. So maybe going into package manager and remove the rider package.