Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Just Updated to Unity 2020.1 and Visual Studio is incompatible?

Discussion in 'Editor & General Support' started by dreamtocode77, Aug 17, 2020.

  1. dreamtocode77

    dreamtocode77

    Joined:
    Nov 10, 2019
    Posts:
    46
    I get the message below with a assembly CSHarp (incompatible) in the solution explorer.

    If i try to use it anyway, not of the auto stuff "auto fill" (auto fill something like Start function) works.


     
    robs92 and adnanzmn97 like this.
  2. dreamtocode77

    dreamtocode77

    Joined:
    Nov 10, 2019
    Posts:
    46
    I switch back to an old version of Unity and functions like "OnTriggerEnter2D" does turn blue and it doesnt even try to guess what I am about to type anymore...
     
  3. heatblayze

    heatblayze

    Joined:
    Sep 19, 2013
    Posts:
    3
    Same here, using Unity 2020.1.2f1 & VS 2019 (16.7.2)

    Edit: I also double checked I have the Visual Studio Tools for Unity installed via the VS installer application.
     
  4. heatblayze

    heatblayze

    Joined:
    Sep 19, 2013
    Posts:
    3
    Not entirely sure what it was, but closing the project and deleting the Library & .vs folders + the .csproj and .sln files fixed the problem for me.
     
  5. donotprocrastinate

    donotprocrastinate

    Joined:
    Apr 25, 2021
    Posts:
    1
    reviving an old thread - i had same issue. modifying heatblayze approach, i closed the project and VS program, deleted .vs folder only and then reloaded and it worked. I think the problem is when a script is created before VS is installed, it probably creates inconsistencies with the program.
     
    n4th2005 and Babster like this.
  6. jamieyello0

    jamieyello0

    Joined:
    May 20, 2021
    Posts:
    1
    Also, make sure you actually have Unity tools installed for Visual Studio and the above solutions will work.

    Tools => Get Tools and Features => Game development with Unity
     
    CodeAlexia, robs92 and Babster like this.
  7. adamgolden

    adamgolden

    Joined:
    Jun 17, 2019
    Posts:
    1,495
    For issues with Visual Studio, "Regenerate project files" button has always worked for me (so far):
    regen_project_files.jpg
     
  8. Babster

    Babster

    Joined:
    Jun 7, 2020
    Posts:
    20
    Also, try this: in Visual studio right-click on the solution in Solution Explorer and select "resolve errors".
     
    AdityaK07, NaimShaqqou, tzoob and 6 others like this.
  9. Oryto21

    Oryto21

    Joined:
    Aug 8, 2021
    Posts:
    1
    Absolutely worked for me thanks man
     
  10. dipo-jaiye

    dipo-jaiye

    Joined:
    Aug 20, 2021
    Posts:
    1
    Thank you so much!!!
     
  11. iamabooditaha

    iamabooditaha

    Joined:
    Dec 27, 2019
    Posts:
    1
    Thank you :)
     
  12. hill97

    hill97

    Joined:
    Aug 26, 2021
    Posts:
    1
    You're a LIFESAVER mate
     
  13. dulinanadil2005

    dulinanadil2005

    Joined:
    Aug 22, 2021
    Posts:
    1
    Thank you man!
     
  14. qtpoison

    qtpoison

    Joined:
    May 6, 2018
    Posts:
    11
    This is the first time an "error resolver" works for me, thanks!
     
  15. Gneissish

    Gneissish

    Joined:
    Oct 26, 2021
    Posts:
    1
    Thank. You. Hero.
     
  16. HouseTrapDev

    HouseTrapDev

    Joined:
    Oct 23, 2020
    Posts:
    1
    I have this same issue but hitting Resolve Errors just brings this window back up. Any ideas? upload_2021-11-6_19-18-22.png
     
    Alisenok2013 likes this.
  17. miledrizk

    miledrizk

    Joined:
    Nov 13, 2021
    Posts:
    1
    Thanks! that worked
     
  18. MrPaulon

    MrPaulon

    Joined:
    Dec 26, 2021
    Posts:
    1
    Thanks you !
     
  19. Wawa_tv

    Wawa_tv

    Joined:
    Jan 29, 2022
    Posts:
    1
    I LOVE YOU OMG
     
    adamgolden likes this.
  20. RSlashHmmm

    RSlashHmmm

    Joined:
    Jun 27, 2023
    Posts:
    1
    worked for me thanks man