You are not logged in.

#1 2023-08-16 09:41:12

hypnoant1
Member
Registered: 2022-09-17
Posts: 1

[SOLVED] VSCode Intellisense for Unity not working

I just installed Unity and I am trying to link it to my VSCode following the guide on https://wiki.archlinux.org/title/Unity3D but the Intellisense is not working and is returning an error. Many guides refer to changing "Omnisharp: Use Global Mono to Always" but there is no longer an option for that. Here are some of the guides I have followed https://bbs.archlinux.org/viewtopic.php?id=275145 https://forum.unity.com/threads/setup-v … st-4944119

Dotnet path: */.config/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/7.0.10/dotnet
Activating C# standalone...
[Info  - 12:00:10 AM] [Program]Language server initialized
[Info  - 12:00:11 AM] [LanguageServerProjectSystem]Loaded MSBuild at /usr/share/dotnet/sdk/7.0.110
[Info  - 12:00:11 AM] [LanguageServerProjectSystem]Loading Project.sln...
[Error - 12:00:11 AM] [LanguageServerProjectSystem]Failure while loading*/Assembly-CSharp.csproj: 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
[Error - 12:00:11 AM] [LanguageServerProjectSystem]Failure while loading */Assembly-CSharp.csproj: 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
[Info  - 12:00:11 AM] [LanguageServerProjectSystem]Successfully completed load of */Assembly-CSharp-Editor.csproj
[Info  - 12:00:11 AM] [LanguageServerProjectSystem]Completed (re)load of all projects in 00:00:00.4492366

I have installed dotnet-runtime dotnet-sdk mono-msbuild mono-msbuild-sdkresolver mono aspnet-runtime. I am running the default visual-studio-code-bin from the AUR.
My dotnet package info.

$ dotnet --info
.NET SDK:
 Version:   7.0.110
 Commit:    ba920f88ac

Runtime Environment:
 OS Name:     arch
 OS Version:  
 OS Platform: Linux
 RID:         arch-x64
 Base Path:   /usr/share/dotnet/sdk/7.0.110/

Host:
  Version:      7.0.10
  Architecture: x64
  Commit:       a6dbb800a4

.NET SDKs installed:
  7.0.110 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 7.0.10 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 7.0.10 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  DOTNET_ROOT       [/usr/share/dotnet]

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download 

EDIT: Solved
Needed to revert the C# plugin to 1.26.
Link to answer https://github.com/dotnet/vscode-csharp/issues/6024

Last edited by hypnoant1 (2023-08-16 23:49:01)

Offline

Board footer

Powered by FluxBB