6

I'm new to Unity and can't find how to get it working with Visual Studio 2019 properly.

I just installed Unity 2020.3.13f1 (LTS) from the Unity Hub as recommended for Hololens developement.

I already had VS2019 latest version installed and working.

In VS2019, I installed: Tools => Get Tools and Features => Game development with Unity

When I double click a script in Unity, VS2019 open and I get the following error: Assembly-CSharp (incomptible)

enter image description here

Also in Unity, I have a warning: Visual Studio Editor Package version 2.0.11 is available, we strongly encourage you update from the Unity Package Manager for a better Visual Studio Integration

enter image description here

Update I fixed the warning (see below) but still have the error in Visual studio

  • In Unity, I updated the package: Window => Package Manager => Visual Studio Editor => 2.0.11
  • I also did: Edit => Preferences => External Tools => Regenerate project files

enter image description here

I now have all latest Unity package versions:

enter image description here

But I still have: "Assembly-CSharp (incomptible)", How to get valid solution in Visual Studio ???

0

3 Answers 3

32

Have had this issue for months... After numerous different posts/guides on this issue, I found just right clicking and hitting "Reload project with dependencies" for each project worked.

Now this was after fully updating Visual Studio and Unity, uninstalling the VS Unity tools, reinstalling, and reconfiguring visual studio tools in Unity... Figured I'd add this to to the list of things to try because it worked for me!

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks Jake, I'm not working anymore on Hololens and Unity so I cannot verify your answer but will assume it is the right one. Thanks for your support.
5

You should probably try right clicking the file and choose reload. When I tried it Solved my issue

1 Comment

This is the solution, I chose the reloaded with dependencies and it worked.
1

I deleted my project and created a new one and everything is fine now in Unity and Visual Studio (All references and scripts).

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.