I am facing with the below mentioned error when I open unity c# script in visual studio code and not visual studio.
I have found a similar problem in stackoverflow but that was for Visual Studio and the solution for it required visual studio. But I am facing this problem in visual studio code.
Please help, I don't want to use visual studio as it is very heavy.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1656,5): Error: The "GetReferenceNearestTargetFrameworkTask" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin" directory.
Thank you.