#error CS0246 The type or namespace name Monobehavior could not be found (are you missing a using
1 messages · Page 1 of 1 (latest)
Capital B
Behaviour
Finally worked.
I did that but I didn't really understand it tbh
I have done that hours ago
Do you get auto completion when you type things?
Finally its updated but still doesn't have Intelesense
It doesn't give any suggestions
Let's do this
There are two sides to the config.
First you need to make sure you have the Game development with Unity workload installed
This is done by opening the Visual Studio Installer program, and hitting "Modify" on your VS install
Then you need to go to Unity and check the External Editor preferences, and make sure VS is selected here. Hit the "Regenerate Project Files" button, just in case.
Restart VS, and it should be done.
Okay so I did all these rn and unfortunately it still didn't work 😐
As you see I modified it
and I regenerated Project files but.... 😐
Can you go to where the Unity project is on your filesystem, and check that there is a .sln and a .csproj file, along your Assets/, Library/, Logs/ folder?
Something like that
Yea I do have all that you stataed
So try closing VS, then double-click the sln
VS should open and load correctly
You should have the scripts listed in your Solution Explorer window (on the right)
Yep that's not registering it. Close that, and open the .csproj instead
Same thing...
For some reason I found a file named UpgradeLog.htm Which has this:
not sure if that can help or its normal...
Where did you find that, along the other files?
yea it was here
From a quick search that can happen when you try to open the project on a different machine/location it was created on
csproj files store paths to resources, and it doesn't like being moved around
Can you open that file with any text editor?
Also, did it ever work before? And how did you install VS? Standalone or using the Unity Hub?
The UpgradeLog.htm?
I installed VS cuz I was coding python on it. I installed Unity Hub yesterday so I am a beginner.
The UpgradeLog.htm?
No, the csproj
I install VS cuz I was coding python on it. I install Unity Hub yesterday so I am a beginner.
So the install was standalone. In Unity, see if you have the "Visual Studio Editor" package installed (Window > Package Manager). Normally it shouldn't be there
no just VS
Click on that 3rd option, uncheck "always use this application to open this file type", and select Notepad for example
And that seems good, although the wrong package is displayed here. VS Code is not VS.
You want the last package in that list to be up-to-date
404 for me
^ Opening it using NotePad. Sorry I am late I was doing something important
bruh
for somereason its saying 404
I'm going to download that and make a diff, hang on
The difference between your file and a known good project file
oh ok
Can you check that this file exists on your system?
C:\Program Files\Unity\Hub\Editor\2020.3.26f1\Editor\Data\Managed\UnityEngine\UnityEngine.dll
Same for this one C:\Program Files\Unity\Hub\Editor\2020.3.26f1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
Yes they are there
Create a new Unity project, using the same Unity version. Create and open a script from Unity. If VS is not loaded, then I don't know what's happening. If it loads, your current project is corrupted
Make sure they're both up to date
Oh okay