Can you open Unity? Does it run? If so, got to Edit > Project Settings > Player. There is a drop down menu labelled “API Compatibility Level”. Click on the drop down menu and select .NET 4.x if it hasn’t been selected yet.
Hi, i just RE-started the 3D course since it has been updated and im trying to set up VS code. Once i installed the c# extension, it said that there was no .net core SDK installed and provided me a link to download it, which i did and installed it. Now it gives me an error saying that Omnisharp.MSBuild.ProjectLoader has a problem (reference assemblies for .NETFramework, Version=v4.7.1 were not found and that Omnisharp.MSBuild.ProjectManager failed to load project file (the script is open in VS code). I have absolutely no idea what to do now. Can anyone help me please? Thank you!
Hi,
First of all, where do you get these error messages? If it’s in Unity, set the API Compatibility Level to .NET 4.x.
See here:
Secondly, which operating system do you use? Is the latest .NET 4 Framework installed?
i am on windows 10, my computer is brand new and i only have unity and vs code installed
I think the error message in the Unity console refers to this line:
Remove the last comma because the Translate method takes in 3 arguments. If you have three commas, you would pass on 4 arguments, one of which is empty.
Once the issue is fixed, click on the X to close the box which complains about the .NET SDK Core. Maybe it is not referring to Unity. Restart Unity and VS Code. Then test your game in Unity. If no error messages pop up in the console, the problem is fixed.
In regards to the second message box, check if you installed all extensions required for Unity. See here:
this is not my picture, i used the other guy picture since i don’t have the .NET core SDK message anymore because i already installed it. i haven’t write any line of code so far anywhere.
Could you share a screenshot of what you see on your screen? The entire screen would be helpful, excluding personal information, of course.
I’m off now for a couple of hours as it’s already 1:22 a.m. here.
Please feel free to ask our helpful community of students over on our Discord chat server.
Otherwise, I’m going to continue supporting you in a couple of ours given you haven’t solved the problem until then. In that case, a screenshot of the problem would be great because I’m still not sure what exactly you would like to fix. Maybe the message you are getting is not referring to something that would prevent you from developing your game.
And in case you haven’t tried this yet: Reboot your computer. That often magically fixes problems.
it seems like it is not fixed, i mean, yes i can write code, but i followed the exact instructions from the video and i start with a notification like this as soon as i install c# extension in visual stufio code, i feel like i would prefer to start to do things the right way and not just go with it and see later if it is going to cause any trouble…
this is the notification i get
@Nina Hi again, did you have time to check the screenshots? i am at the last screenshot i sent yesterday. i have unity installed, visual studio code installed, i installed c# extension and i now have the 2 notifications at the bottom saying the .NET core SDK cannot be located and the second notification has to do with c# extension too, something about omnisharp. what do i do next? Do i follow the link (“Get the .NET core SDK” blue button) on the notification and install it?
if yes, then what do i do with the omnisharp problem?
Thank you
Hi,
Is your first screenshot from yesterday still valid? If so, please take a look at your console and follow this instruction:
To see if the correct version of the .NET Framework is installed, please follow this instruction (“How to check .NET version using File Explorer”):
If the issue persists, please follow the instructions in this thread:
According to the answer with the most upvotes, one is getting problems if VS Code is running while installing the .NET Core SDK.
If you did that and if there are still messages, click on “Show Output”. Maybe a more helpful message will show up in the OUTPUT (console) of VS Code.
And if nothing helps, I’d suggest to uninstall both VS Code and the .NET Core SDK. Reboot your computer. Reinstall both while VS Code is not running.
@Csharpalos I had this issue too and think I fixed it. I exited the unity programs and VS code then reopened VS Code. After that I uninstalled the extensions and closed out. Reopen and reinstall the C# extension and close out. Repeat for the unity snippets extension.
edit:didn’t work after all, trying steps below
thank you for taking the time to help me out! unfortunately, i tried that already and it didnt fix it, right now, i installed a second .NET framework (the 4.7.1) as i already had the 4.8 installed and the .NET 5.0 SDK and it seemed to have fixed it, tho i am not sure this was the right thing to do, but i’ll just leave it that way since i cant spend any more time on this. If you need help to find the link to those, let me know and ill put the links here. thanks again!
The warning from the C# extension by OmniSharp is apparently caused by mono. Link to discussion
I’ll look into workarounds tomorrow, calling it a night.
From what I can tell, this is a unity problem for windows users. The solution was to do what Csharpalos and Nina suggested which is to download the .NET framework 4.7.1 along with .NET 5.0 SDK. The Mono stuff was an issue before Nov 2020 but I don’t think it’s the main cause anymore (I tried downloading Mono for Windows and it did not help).
OmniSharp also notes an issue for Mac and Linux users that have Mono installed
For MacOS and Linux users who have Mono installed, this means you will need to set
omnisharp.useGlobalMono
tonever
until a version of Mono ships with MSBuild 16.8.
[SOLVED]
I am now half way through the Obstacle Course project and everything is goin fine. I’d recommend this solution to anyone who encounter this problem. Install the .NET 5.0 SDK and the 4.7.1 Framework and the notifications will be gone.
Here is the link to the 5.0 SDK (the one on the left, not the 3.1 or the 4.8):
and here is the link for the 4.7.1 Framework (you have to download the DEVELOPER PACK):
Thanks to everyone who helped us out and have a good programming day!
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
Thanks a lot for sharing your solution, @Csharpalos. I’m glad you managed to fix the problem.