
When I created a new Unity 2020.3 LTS + VSCode environment and started coding, I solved the problem that code completion (Intellisense) did not work in VSCode, so I will write down the solution.
Software | Version |
---|---|
Unity | Unity2020.3 LTS |
OS | Windows 10 Home |
VSCode | 1.63.2 |
I've already installed the following as an extension to VSCode, which is suitable for coding with Unity. The following are already installed.
In this state, when I open the code from Unity, Intellisense (code completion, etc.) does not work.
For example, creating a new scripting file (cs file) in unity.
In the void Start()
method, type this.game
and then + .
It should show this.gameObject
as a candidate, but it doesn't.
Here's what happens when the candidate is displayed (ideally).
Open it as a project in VSCode properly from Unity. (It is assumed that opening VSCode from Unity is pre-associated.)
->
The following error was displayed in the "Output" tab of VSCode.
[warn]: OmniSharp.MSBuild.ProjectManager
Failed to load project file 'c:\myunityproject\Assembly-CSharp.csproj'.
c:\myunityproject\Assembly-CSharp.csproj
c:\Users\amaji\.vscode\extensions\ms-dotnettools.csharp-1.23.17
\.omnisharp\1.37.17\.msbuild\Current\Bin
\Microsoft.Common.CurrentVersion.targets(1217,5):
Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found.
To resolve this, install the Developer Pack (SDK/Targeting Pack)
for this framework version or retarget your application.
You can download .NET Framework Developer Packs at
https://aka.ms/msbuild/developerpacks
[fail]: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded:
c:\myunityproject\Assembly-CSharp.csproj
The Error message said: "NETFramework Version=v4.7.1 is not found".
okay then, Download & install it from the official website.
Install the Download .NET Framework 4.7.1 Developer Pack
.
After the installation, from Unity again
-> to open the project, and the completion is now working properly.Congratulations and thank you.
date | modification |
---|---|
none |
Thank you for your message.
Sorry. The Error has occurred.We apologize for the inconvenience.Please try again in a few minutes or contact us via DM below.
Twitter:@NodachiSoft_engName:Send the following information to us. If you are happy with your submission, please click "Send". If you want to modify it, please click "Back".
Name: