-1

im on linux and used vs code with unity a lot in the past. after a while of not using it apparently there has been an update that broke things. C# output:

Using dotnet configured on PATH
Dotnet path: ../lib/dotnet/dotnet
Activating C# standalone...
[Info  - 6:48:05 PM] [Program]Language server initialized
[Info  - 6:48:06 PM] [LanguageServerProjectSystem]Loaded MSBuild at /usr/lib/dotnet/sdk/7.0.110
[Info  - 6:48:06 PM] [LanguageServerProjectSystem]Loading /media/amiroof/Home/Projects/DnDMapGen/DnDMapGen.sln...
[Error - 6:48:08 PM] [LanguageServerProjectSystem]Failure while loading /media/amiroof/Home/Projects/DnDMapGen/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  - 6:48:08 PM] [LanguageServerProjectSystem]Completed (re)load of all projects in 00:00:01.4733995

and the dotnet --info output

.NET SDK:
 Version:   7.0.110
 Commit:    ba920f88ac

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  23.04
 OS Platform: Linux
 RID:         ubuntu.23.04-x64
 Base Path:   /usr/lib/dotnet/sdk/7.0.110/

Host:
  Version:      7.0.10
  Architecture: x64
  Commit:       a6dbb800a4

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

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

i tried setting omnisharp.useModernNet on or off but no difference.

  • 1
    Did you try doing what the error message suggests (installing the developer pack for .NET Framework 4.7.1 or retargeting your project to a version you have installed). It's unlikely that you'll get your code running against the Framework on Linux, so try the second suggestion – Flydog57 Aug 27 '23 at 17:29
  • 2
    Does this answer your question? [What changed about the C# extension for VS Code's IntelliSense in the v2.0.320 release?](https://stackoverflow.com/questions/76850403/what-changed-about-the-c-sharp-extension-for-vs-codes-intellisense-in-the-v2-0) – starball Aug 27 '23 at 19:54

0 Answers0