![visual studio code unity 2018 visual studio code unity 2018](https://i.ytimg.com/vi/Hsg_rwz5S2Q/maxresdefault.jpg)
but the solutions seem to be really esoteric, or I just missed the good ones. This or similar issue has been reported in OmniSharp's github.
![visual studio code unity 2018 visual studio code unity 2018](https://i.stack.imgur.com/tItTb.gif)
And seems like there are two copies of that folder, one in Visual Studio Community edition (that I installed along Unity) and one in VS Code folder.įor some reason OmniSharp decides to load the one in Visual Studio folder, which results in something missing. Seems like VS code OmniSharp plugin tries to find some "stuff" related to msbuild - I have no idea what it is about. I've got similar issues with OmniSharp and Atom, but I've since just used VS Code. This has happened at least with some 2018.x versions. If I restart unity, I get the same error. If I close a project that has only few classes, then open Unity, I get the similar error and autocomplete doesn't work in VS Code. I think I've got the exact same error message, but lately I've got a bit different I think. although on the positive side of things, this has shown me that I rely too much on Intellisense!
Visual studio code unity 2018 install#
To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Therefore your assembly may not be correctly targeted for the framework you intend.įailed to load project file 'f:\Projects\*******\Assembly-CSharp.csproj'.į:\Projects\*******\Assembly-CSharp.csprojĬ:\Users\#\.vscode\extensions\ms-vscode.csharp-1.15.2\.omnisharp\1.30.1\msbuild\15.0\Bin\(1126,5): Error: The reference assemblies for framework ".NETFramework,Version=v4.7.1" were not found. The reference assemblies for framework ".NETFramework,Version=v4.7.1" were not found. I'm having the same issue, and I'm getting this in the VSCode Output (seemingly related to the OmniSharp extension, but don't know if the fault lays in that or elsewhere):