# Rider and VS missing MonoBehaviour dependency

**URL:** https://discussions.unity.com/t/rider-and-vs-missing-monobehaviour-dependency/813350
**Category:** Scripting
**Tags:** Scripting, Question
**Created:** [October 19, 2020, 2:33pm UTC](https://discussions.unity.com/t/rider-and-vs-missing-monobehaviour-dependency/813350 "2020-10-19T14:33:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![AlanMattano](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/alanmattano/32/599740_2.png) [@AlanMattano](https://discussions.unity.com/u/AlanMattano)
#### Post date: [October 19, 2020, 2:33pm UTC](https://discussions.unity.com/t/rider-and-vs-missing-monobehaviour-dependency/813350/1 "2020-10-19T14:33:09Z")

</div>

![6433154--719717--upload_2020-10-19_11-30-37.png](https://europe1.discourse-cdn.com/unity/original/3X/7/9/79b730210af84566af22518b0e534327a7c7f4b6.png)

Editor: Visual Studio  
**MonoBehaviour is marked in red** as if not connected.  
I do not know how to deal with this issue  
Since Rider is not opening, Can be that Rider is interfering?

Environment: Unity 2020.2.0b7, Windows 10, Visual Studio 2019 Versión 16.7.6

**SOLUTION**  
Reimport All

In the “Project” window tab right-click and select “Reimport All” (CAUTION READ DOCUMENTATION)  
That solves my issue. My project was small and handles well this feature.

---

<div class="post-metadata">

### Author: ![Brathnann](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@Brathnann](https://discussions.unity.com/u/Brathnann)
#### Post date: [October 19, 2020, 2:44pm UTC](https://discussions.unity.com/t/rider-and-vs-missing-monobehaviour-dependency/813350/2 "2020-10-19T14:44:33Z")

</div>

Do you have any compile time errors showing in the console? If you run into one of those, that can keep stuff from compiling all the way. If you don’t see errors in the console to start, trying to build can also toss some errors that give you a direction to go.

As far as Rider, make sure the rider package is installed in the package manager and that you’ve selected it in your preferences as your editor choice. Also, try opening it on it’s own. Does it open? Does it prompt you for anything?

I doubt there is interference.

---

<div class="post-metadata">

### Author: ![AlanMattano](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/alanmattano/32/599740_2.png) [@AlanMattano](https://discussions.unity.com/u/AlanMattano)
#### Post date: [October 19, 2020, 3:00pm UTC](https://discussions.unity.com/t/rider-and-vs-missing-monobehaviour-dependency/813350/3 "2020-10-19T15:00:59Z")

</div>

> [@Brathnann](#):
>
> Do you have any compile time errors showing in the console?

No.  
If. My program is correct, runs correct and there are correct console warnings.No compile errors

I was using Rider and since was not starting, switch to VS. I take off all Rider from the package manager. There is only “VS Editor” and “VS code editor” packages.

I give all firewall permissions to this latest Unity 2020.2.0b7  
Unity 2017, Unity 2019 are working fine.  
Looks like a project setup problem

---

<div class="post-metadata">

### Author: ![AlanMattano](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/alanmattano/32/599740_2.png) [@AlanMattano](https://discussions.unity.com/u/AlanMattano)
#### Post date: [October 19, 2020, 3:12pm UTC](https://discussions.unity.com/t/rider-and-vs-missing-monobehaviour-dependency/813350/4 "2020-10-19T15:12:17Z")

</div>

**SOLUTION**  
Reimport All

In the “Project” window tab right-click and select “Reimport All” (CAUTION READ DOCUMENTATION)  
That solves my issue. My project was small and handles well this feature.

 ![6433307--719741--ReimportAll Unity.jpg](https://europe1.discourse-cdn.com/unity/original/4X/f/b/e/fbe3684b037aa1af1a38aff58da65f0d012aad96.jpeg)
