Search Unity

  1. Get the latest news, tutorials and offers directly to your inbox with our newsletters. Sign up now.
    Dismiss Notice

Linux and VS-Code not working on Unity C# scripts

Discussion in 'Linux' started by richeverts, Mar 10, 2020.

  1. richeverts

    richeverts

    Joined:
    Jul 22, 2017
    Posts:
    6
    I'm having some real challenges getting autocompletion and other IDE standard things working with the C# libraries using VS Code with Unity.

    I have Microsoft's C# extension: `@id:ms-dotnettools.csharp` and Unity Code Snippets installed: `@id:kleber-swf.unity-code-snippets`

    When I'm loading any script file, it gives me these errors:
    https://i.imgur.com/sb0Nvbd.png

    The C# extension it recommends is this one: @id:ms-vscode.csharp, which got screwed up in the latest VS-Code release as seen here. I've tried this version as well.

    I reinstalled following those directions, and still nothing. When I hover over an inheritable class called Agent from the Unity ML-Agents library in `public class PenguinAgent : Agent`, nothing appears. I also get no auto-complete or anything on any of the other C# code.

    Any ideas why?
     
    Last edited: Mar 12, 2020
  2. richeverts

    richeverts

    Joined:
    Jul 22, 2017
    Posts:
    6
    Has anyone out there gotten auto-completion and standard IDE tools working on VS-Code and Unity?
     
  3. Snoober

    Snoober

    Joined:
    Feb 11, 2020
    Posts:
    5
    I am having the same problem with vim/VS code/Rider (have tried all 3). I tried in Unity Editor clicking "Assets -> Open C# Project" but it did not help.

    EDIT: I should mention for vim I have tried with both Omnisharp plugin as well as YouCompleteMe (which uses Omnisharp internally) and neither one can find a solution file.
     
  4. Snoober

    Snoober

    Joined:
    Feb 11, 2020
    Posts:
    5
    I may have gotten it to work. I at least got YouCompleteMe to find the solution file. I'm not sure if there is full auto-completion functionality.

    Anyways try "Edit -> Preferences... -> External Tools" and check "Generate all .csproj files". You might try after "Assets -> Open C# Project" not quite sure what that does to be honest but wouldn't hurt.
     
  5. richeverts

    richeverts

    Joined:
    Jul 22, 2017
    Posts:
    6
    It's still giving me errors. Here's the log with some of the paths shortened:

    Code (CSharp):
    1. Starting OmniSharp server at 3/20/2020, 12:16:05 AM
    2.     Target: ~/PenguinSetup/PenguinSetup.sln
    3.  
    4. OmniSharp server started.
    5.     Path: ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/run
    6.     PID: 11834
    7.  
    8. [info]: OmniSharp.Stdio.Host
    9.         Starting OmniSharp on ubuntu 19.10 (x64)
    10. [info]: OmniSharp.Services.DotNetCliService
    11.         DotNetPath set to dotnet
    12. [info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
    13.         Located 1 MSBuild instance(s)
    14.             1: StandAlone 16.4 - "~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin"
    15. [info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
    16.         MSBUILD_EXE_PATH environment variable set to '~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/MSBuild.dll'
    17. [info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
    18.         Registered MSBuild instance: StandAlone 16.4 - "~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin"
    19.             CscToolExe = csc.exe
    20.             MSBuildToolsPath = ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin
    21.             CscToolPath = ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Roslyn
    22.             BypassFrameworkInstallChecks = true
    23.             MSBuildExtensionsPath = ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild
    24. [info]: OmniSharp.Cake.CakeProjectSystem
    25.         Detecting Cake files in '~/PenguinSetup'.
    26. [info]: OmniSharp.Cake.CakeProjectSystem
    27.         Could not find any Cake files
    28. [info]: OmniSharp.MSBuild.ProjectSystem
    29.         Detecting projects in '~/PenguinSetup/PenguinSetup.sln'.
    30. [info]: OmniSharp.MSBuild.ProjectManager
    31.         Queue project update for '~/PenguinSetup/UnityEngine.TestRunner.csproj'
    32. [info]: OmniSharp.MSBuild.ProjectManager
    33.         Queue project update for '~/PenguinSetup/Barracuda.csproj'
    34. [info]: OmniSharp.MSBuild.ProjectManager
    35.         Queue project update for '~/PenguinSetup/UnityEngine.UI.csproj'
    36. [info]: OmniSharp.MSBuild.ProjectManager
    37.         Queue project update for '~/PenguinSetup/Unity.TextMeshPro.csproj'
    38. [info]: OmniSharp.MSBuild.ProjectManager
    39.         Queue project update for '~/PenguinSetup/Unity.Timeline.csproj'
    40. [info]: OmniSharp.MSBuild.ProjectManager
    41.         Queue project update for '~/PenguinSetup/Unity.Mathematics.csproj'
    42. [info]: OmniSharp.MSBuild.ProjectManager
    43.         Queue project update for '~/PenguinSetup/Assembly-CSharp.csproj'
    44. [info]: OmniSharp.MSBuild.ProjectManager
    45.         Queue project update for '~/PenguinSetup/Unity.ML-Agents.csproj'
    46. [info]: OmniSharp.MSBuild.ProjectManager
    47.         Queue project update for '~/PenguinSetup/Unity.Burst.csproj'
    48. [info]: OmniSharp.MSBuild.ProjectManager
    49.         Queue project update for '~/PenguinSetup/MacBLAS.csproj'
    50. [info]: OmniSharp.MSBuild.ProjectManager
    51.         Queue project update for '~/PenguinSetup/BurstBLAS.csproj'
    52. [info]: OmniSharp.MSBuild.ProjectManager
    53.         Queue project update for '~/PenguinSetup/iOSBLAS.csproj'
    54. [info]: OmniSharp.MSBuild.ProjectManager
    55.         Queue project update for '~/PenguinSetup/Unity.TextMeshPro.Editor.csproj'
    56. [info]: OmniSharp.MSBuild.ProjectManager
    57.         Queue project update for '~/PenguinSetup/Unity.Timeline.Editor.csproj'
    58. [info]: OmniSharp.MSBuild.ProjectManager
    59.         Queue project update for '~/PenguinSetup/UnityEditor.TestRunner.csproj'
    60. [info]: OmniSharp.MSBuild.ProjectManager
    61.         Queue project update for '~/PenguinSetup/UnityEditor.UI.csproj'
    62. [info]: OmniSharp.MSBuild.ProjectManager
    63.         Queue project update for '~/PenguinSetup/Unity.Rider.Editor.csproj'
    64. [info]: OmniSharp.MSBuild.ProjectManager
    65.         Queue project update for '~/PenguinSetup/Barracuda-editor.csproj'
    66. [info]: OmniSharp.MSBuild.ProjectManager
    67.         Queue project update for '~/PenguinSetup/Unity.CollabProxy.Editor.csproj'
    68. [info]: OmniSharp.MSBuild.ProjectManager
    69.         Queue project update for '~/PenguinSetup/Unity.ML-Agents.Editor.csproj'
    70. [info]: OmniSharp.MSBuild.ProjectManager
    71.         Queue project update for '~/PenguinSetup/Unity.VSCode.Editor.csproj'
    72. [info]: OmniSharp.MSBuild.ProjectManager
    73.         Queue project update for '~/PenguinSetup/Unity.Burst.Editor.csproj'
    74. [info]: OmniSharp.MSBuild.ProjectManager
    75.         Queue project update for '~/PenguinSetup/Assembly-CSharp-Editor.csproj'
    76. [info]: OmniSharp.MSBuild.ProjectManager
    77.         Queue project update for '~/PenguinSetup/Unity.Mathematics.Editor.csproj'
    78. [info]: OmniSharp.Script.ScriptProjectSystem
    79.         Detecting CSX files in '~/PenguinSetup'.
    80. [info]: OmniSharp.Script.ScriptProjectSystem
    81.         Could not find any CSX files
    82. [info]: OmniSharp.WorkspaceInitializer
    83.         Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
    84. [info]: OmniSharp.WorkspaceInitializer
    85.         Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
    86. [info]: OmniSharp.WorkspaceInitializer
    87.         Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
    88. [info]: OmniSharp.WorkspaceInitializer
    89.         Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.EditorConfigWorkspaceOptionsProvider, Order: 200
    90. [info]: OmniSharp.WorkspaceInitializer
    91.         Configuration finished.
    92. [info]: OmniSharp.Stdio.Host
    93.         Omnisharp server running using Stdio at location '~/PenguinSetup' on host 11575.
    94. [info]: OmniSharp.MSBuild.ProjectManager
    95.         Loading project: ~/PenguinSetup/UnityEngine.TestRunner.csproj
    96. [fail]: OmniSharp.MSBuild.ProjectLoader
    97.         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
    98. [warn]: OmniSharp.MSBuild.ProjectManager
    99.         Failed to load project file '~/PenguinSetup/UnityEngine.TestRunner.csproj'.
    100. ~/PenguinSetup/UnityEngine.TestRunner.csproj
    101. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    102.  
    103. [info]: OmniSharp.MSBuild.ProjectManager
    104.         Loading project: ~/PenguinSetup/Barracuda.csproj
    105. [fail]: OmniSharp.MSBuild.ProjectLoader
    106.         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
    107. [warn]: OmniSharp.MSBuild.ProjectManager
    108.         Failed to load project file '~/PenguinSetup/Barracuda.csproj'.
    109. ~/PenguinSetup/Barracuda.csproj
    110. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    111.  
    112. [info]: OmniSharp.MSBuild.ProjectManager
    113.         Loading project: ~/PenguinSetup/UnityEngine.UI.csproj
    114. [fail]: OmniSharp.MSBuild.ProjectLoader
    115.         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
    116. [warn]: OmniSharp.MSBuild.ProjectManager
    117.         Failed to load project file '~/PenguinSetup/UnityEngine.UI.csproj'.
    118. ~/PenguinSetup/UnityEngine.UI.csproj
    119. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    120.  
    121. [info]: OmniSharp.MSBuild.ProjectManager
    122.         Loading project: ~/PenguinSetup/Unity.TextMeshPro.csproj
    123. [fail]: OmniSharp.MSBuild.ProjectLoader
    124.         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
    125. [warn]: OmniSharp.MSBuild.ProjectManager
    126.         Failed to load project file '~/PenguinSetup/Unity.TextMeshPro.csproj'.
    127. ~/PenguinSetup/Unity.TextMeshPro.csproj
    128. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    129.  
    130. [info]: OmniSharp.MSBuild.ProjectManager
    131.         Loading project: ~/PenguinSetup/Unity.Timeline.csproj
    132. [fail]: OmniSharp.MSBuild.ProjectLoader
    133.         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
    134. [warn]: OmniSharp.MSBuild.ProjectManager
    135.         Failed to load project file '~/PenguinSetup/Unity.Timeline.csproj'.
    136. ~/PenguinSetup/Unity.Timeline.csproj
    137. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    138.  
    139. [info]: OmniSharp.MSBuild.ProjectManager
    140.         Loading project: ~/PenguinSetup/Unity.Mathematics.csproj
    141. [fail]: OmniSharp.MSBuild.ProjectLoader
    142.         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
    143. [warn]: OmniSharp.MSBuild.ProjectManager
    144.         Failed to load project file '~/PenguinSetup/Unity.Mathematics.csproj'.
    145. ~/PenguinSetup/Unity.Mathematics.csproj
    146. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    147.  
    148. [info]: OmniSharp.MSBuild.ProjectManager
    149.         Loading project: ~/PenguinSetup/Assembly-CSharp.csproj
    150. [fail]: OmniSharp.MSBuild.ProjectLoader
    151.         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
    152. [warn]: OmniSharp.MSBuild.ProjectManager
    153.         Failed to load project file '~/PenguinSetup/Assembly-CSharp.csproj'.
    154. ~/PenguinSetup/Assembly-CSharp.csproj
    155. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    156.  
    157. [info]: OmniSharp.MSBuild.ProjectManager
    158.         Loading project: ~/PenguinSetup/Unity.ML-Agents.csproj
    159. [fail]: OmniSharp.MSBuild.ProjectLoader
    160.         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
    161. [warn]: OmniSharp.MSBuild.ProjectManager
    162.         Failed to load project file '~/PenguinSetup/Unity.ML-Agents.csproj'.
    163. ~/PenguinSetup/Unity.ML-Agents.csproj
    164. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    165.  
    166. [info]: OmniSharp.MSBuild.ProjectManager
    167.         Loading project: ~/PenguinSetup/Unity.Burst.csproj
    168. [fail]: OmniSharp.MSBuild.ProjectLoader
    169.         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
    170. [warn]: OmniSharp.MSBuild.ProjectManager
    171.         Failed to load project file '~/PenguinSetup/Unity.Burst.csproj'.
    172. ~/PenguinSetup/Unity.Burst.csproj
    173. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    174.  
    175. [info]: OmniSharp.MSBuild.ProjectManager
    176.         Loading project: ~/PenguinSetup/MacBLAS.csproj
    177. [fail]: OmniSharp.MSBuild.ProjectLoader
    178.         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
    179. [warn]: OmniSharp.MSBuild.ProjectManager
    180.         Failed to load project file '~/PenguinSetup/MacBLAS.csproj'.
    181. ~/PenguinSetup/MacBLAS.csproj
    182. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    183.  
    184. [info]: OmniSharp.MSBuild.ProjectManager
    185.         Loading project: ~/PenguinSetup/BurstBLAS.csproj
    186. [fail]: OmniSharp.MSBuild.ProjectLoader
    187.         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
    188. [warn]: OmniSharp.MSBuild.ProjectManager
    189.         Failed to load project file '~/PenguinSetup/BurstBLAS.csproj'.
    190. ~/PenguinSetup/BurstBLAS.csproj
    191. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    192.  
    193. [info]: OmniSharp.MSBuild.ProjectManager
    194.         Loading project: ~/PenguinSetup/iOSBLAS.csproj
    195. [fail]: OmniSharp.MSBuild.ProjectLoader
    196.         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
    197. [warn]: OmniSharp.MSBuild.ProjectManager
    198.         Failed to load project file '~/PenguinSetup/iOSBLAS.csproj'.
    199. ~/PenguinSetup/iOSBLAS.csproj
    200. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    201.  
    202. [info]: OmniSharp.MSBuild.ProjectManager
    203.         Loading project: ~/PenguinSetup/Unity.TextMeshPro.Editor.csproj
    204. [fail]: OmniSharp.MSBuild.ProjectLoader
    205.         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
    206. [warn]: OmniSharp.MSBuild.ProjectManager
    207.         Failed to load project file '~/PenguinSetup/Unity.TextMeshPro.Editor.csproj'.
    208. ~/PenguinSetup/Unity.TextMeshPro.Editor.csproj
    209. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    210.  
    211. [info]: OmniSharp.MSBuild.ProjectManager
    212.         Loading project: ~/PenguinSetup/Unity.Timeline.Editor.csproj
    213. [fail]: OmniSharp.MSBuild.ProjectLoader
    214.         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
    215. [warn]: OmniSharp.MSBuild.ProjectManager
    216.         Failed to load project file '~/PenguinSetup/Unity.Timeline.Editor.csproj'.
    217. ~/PenguinSetup/Unity.Timeline.Editor.csproj
    218. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    219.  
    220. [info]: OmniSharp.MSBuild.ProjectManager
    221.         Loading project: ~/PenguinSetup/UnityEditor.TestRunner.csproj
    222. [fail]: OmniSharp.MSBuild.ProjectLoader
    223.         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
    224. [warn]: OmniSharp.MSBuild.ProjectManager
    225.         Failed to load project file '~/PenguinSetup/UnityEditor.TestRunner.csproj'.
    226. ~/PenguinSetup/UnityEditor.TestRunner.csproj
    227. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    228.  
    229. [info]: OmniSharp.MSBuild.ProjectManager
    230.         Loading project: ~/PenguinSetup/UnityEditor.UI.csproj
    231. [fail]: OmniSharp.MSBuild.ProjectLoader
    232.         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
    233. [warn]: OmniSharp.MSBuild.ProjectManager
    234.         Failed to load project file '~/PenguinSetup/UnityEditor.UI.csproj'.
    235. ~/PenguinSetup/UnityEditor.UI.csproj
    236. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    237.  
    238. [info]: OmniSharp.MSBuild.ProjectManager
    239.         Loading project: ~/PenguinSetup/Unity.Rider.Editor.csproj
    240. [fail]: OmniSharp.MSBuild.ProjectLoader
    241.         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
    242. [warn]: OmniSharp.MSBuild.ProjectManager
    243.         Failed to load project file '~/PenguinSetup/Unity.Rider.Editor.csproj'.
    244. ~/PenguinSetup/Unity.Rider.Editor.csproj
    245. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    246.  
    247. [info]: OmniSharp.MSBuild.ProjectManager
    248.         Loading project: ~/PenguinSetup/Barracuda-editor.csproj
    249. [fail]: OmniSharp.MSBuild.ProjectLoader
    250.         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
    251. [warn]: OmniSharp.MSBuild.ProjectManager
    252.         Failed to load project file '~/PenguinSetup/Barracuda-editor.csproj'.
    253. ~/PenguinSetup/Barracuda-editor.csproj
    254. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    255.  
    256. [info]: OmniSharp.MSBuild.ProjectManager
    257.         Loading project: ~/PenguinSetup/Unity.CollabProxy.Editor.csproj
    258. [fail]: OmniSharp.MSBuild.ProjectLoader
    259.         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
    260. [warn]: OmniSharp.MSBuild.ProjectManager
    261.         Failed to load project file '~/PenguinSetup/Unity.CollabProxy.Editor.csproj'.
    262. ~/PenguinSetup/Unity.CollabProxy.Editor.csproj
    263. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    264.  
    265. [info]: OmniSharp.MSBuild.ProjectManager
    266.         Loading project: ~/PenguinSetup/Unity.ML-Agents.Editor.csproj
    267. [fail]: OmniSharp.MSBuild.ProjectLoader
    268.         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
    269. [warn]: OmniSharp.MSBuild.ProjectManager
    270.         Failed to load project file '~/PenguinSetup/Unity.ML-Agents.Editor.csproj'.
    271. ~/PenguinSetup/Unity.ML-Agents.Editor.csproj
    272. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    273.  
    274. [info]: OmniSharp.MSBuild.ProjectManager
    275.         Loading project: ~/PenguinSetup/Unity.VSCode.Editor.csproj
    276. [fail]: OmniSharp.MSBuild.ProjectLoader
    277.         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
    278. [warn]: OmniSharp.MSBuild.ProjectManager
    279.         Failed to load project file '~/PenguinSetup/Unity.VSCode.Editor.csproj'.
    280. ~/PenguinSetup/Unity.VSCode.Editor.csproj
    281. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    282.  
    283. [info]: OmniSharp.MSBuild.ProjectManager
    284.         Loading project: ~/PenguinSetup/Unity.Burst.Editor.csproj
    285. [fail]: OmniSharp.MSBuild.ProjectLoader
    286.         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
    287. [warn]: OmniSharp.MSBuild.ProjectManager
    288.         Failed to load project file '~/PenguinSetup/Unity.Burst.Editor.csproj'.
    289. ~/PenguinSetup/Unity.Burst.Editor.csproj
    290. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    291.  
    292. [info]: OmniSharp.MSBuild.ProjectManager
    293.         Loading project: ~/PenguinSetup/Assembly-CSharp-Editor.csproj
    294. [fail]: OmniSharp.MSBuild.ProjectLoader
    295.         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
    296. [warn]: OmniSharp.MSBuild.ProjectManager
    297.         Failed to load project file '~/PenguinSetup/Assembly-CSharp-Editor.csproj'.
    298. ~/PenguinSetup/Assembly-CSharp-Editor.csproj
    299. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    300.  
    301. [info]: OmniSharp.MSBuild.ProjectManager
    302.         Loading project: ~/PenguinSetup/Unity.Mathematics.Editor.csproj
    303. [fail]: OmniSharp.MSBuild.ProjectLoader
    304.         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
    305. [warn]: OmniSharp.MSBuild.ProjectManager
    306.         Failed to load project file '~/PenguinSetup/Unity.Mathematics.Editor.csproj'.
    307. ~/PenguinSetup/Unity.Mathematics.Editor.csproj
    308. ~/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1193,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
    309.  
    310. [fail]: OmniSharp.MSBuild.ProjectManager
    311.         Attempted to update project that is not loaded: ~/PenguinSetup/UnityEngine.TestRunner.csproj
    312. [fail]: OmniSharp.MSBuild.ProjectManager
    313.         Attempted to update project that is not loaded: ~/PenguinSetup/Barracuda.csproj
    314. [fail]: OmniSharp.MSBuild.ProjectManager
    315.         Attempted to update project that is not loaded: ~/PenguinSetup/UnityEngine.UI.csproj
    316. [fail]: OmniSharp.MSBuild.ProjectManager
    317.         Attempted to update project that is not loaded: ~/PenguinSetup/Unity.TextMeshPro.csproj
    318. [fail]: OmniSharp.MSBuild.ProjectManager
    319.         Attempted to update project that is not loaded: ~/PenguinSetup/Unity.Timeline.csproj
    320. [fail]: OmniSharp.MSBuild.ProjectManager
    321.         Attempted to update project that is not loaded: ~/PenguinSetup/Unity.Mathematics.csproj
    322. [fail]: OmniSharp.MSBuild.ProjectManager
    323.         Attempted to update project that is not loaded: ~/PenguinSetup/Assembly-CSharp.csproj
    324. [fail]: OmniSharp.MSBuild.ProjectManager
    325.         Attempted to update project that is not loaded: ~/PenguinSetup/Unity.ML-Agents.csproj
    326. [fail]: OmniSharp.MSBuild.ProjectManager
    327.         Attempted to update project that is not loaded: ~/PenguinSetup/Unity.Burst.csproj
    328. [fail]: OmniSharp.MSBuild.ProjectManager
    329.         Attempted to update project that is not loaded: ~/PenguinSetup/MacBLAS.csproj
    330. [fail]: OmniSharp.MSBuild.ProjectManager
    331.         Attempted to update project that is not loaded: ~/PenguinSetup/BurstBLAS.csproj
    332. [fail]: OmniSharp.MSBuild.ProjectManager
    333.         Attempted to update project that is not loaded: ~/PenguinSetup/iOSBLAS.csproj
    334. [fail]: OmniSharp.MSBuild.ProjectManager
    335.         Attempted to update project that is not loaded: ~/PenguinSetup/Unity.TextMeshPro.Editor.csproj
    336. [fail]: OmniSharp.MSBuild.ProjectManager
    337.         Attempted to update project that is not loaded: ~/PenguinSetup/Unity.Timeline.Editor.csproj
    338. [fail]: OmniSharp.MSBuild.ProjectManager
    339.         Attempted to update project that is not loaded: ~/PenguinSetup/UnityEditor.TestRunner.csproj
    340. [fail]: OmniSharp.MSBuild.ProjectManager
    341.         Attempted to update project that is not loaded: ~/PenguinSetup/UnityEditor.UI.csproj
    342. [fail]: OmniSharp.MSBuild.ProjectManager
    343.         Attempted to update project that is not loaded: ~/PenguinSetup/Unity.Rider.Editor.csproj
    344. [fail]: OmniSharp.MSBuild.ProjectManager
    345.         Attempted to update project that is not loaded: ~/PenguinSetup/Barracuda-editor.csproj
    346. [fail]: OmniSharp.MSBuild.ProjectManager
    347.         Attempted to update project that is not loaded: ~/PenguinSetup/Unity.CollabProxy.Editor.csproj
    348. [fail]: OmniSharp.MSBuild.ProjectManager
    349.         Attempted to update project that is not loaded: ~/PenguinSetup/Unity.ML-Agents.Editor.csproj
    350. [fail]: OmniSharp.MSBuild.ProjectManager
    351.         Attempted to update project that is not loaded: ~/PenguinSetup/Unity.VSCode.Editor.csproj
    352. [fail]: OmniSharp.MSBuild.ProjectManager
    353.         Attempted to update project that is not loaded: ~/PenguinSetup/Unity.Burst.Editor.csproj
    354. [fail]: OmniSharp.MSBuild.ProjectManager
    355.         Attempted to update project that is not loaded: ~/PenguinSetup/Assembly-CSharp-Editor.csproj
    356. [fail]: OmniSharp.MSBuild.ProjectManager
    357.         Attempted to update project that is not loaded: ~/PenguinSetup/Unity.Mathematics.Editor.csproj
    358.  
     
  6. richeverts

    richeverts

    Joined:
    Jul 22, 2017
    Posts:
    6
    I really am hoping for some kind of fix, but for now, I've had to switch to Jetbrains Rider. I don't think you can use Unity3D, Linux, and Visual Studio Code to do what I'm getting in Jetbrains:

    https://i.imgur.com/tk0EKna.png
     
    Snoober likes this.
  7. andrews_unity

    andrews_unity

    Unity Technologies

    Joined:
    Dec 11, 2015
    Posts:
    258

    So the errors you are seeing are omnisharp not being able to resolve the proper .net framework. I have seen this before and you generally need to have mono installed. Rider deals with this a lot better overall.
     
  8. richeverts

    richeverts

    Joined:
    Jul 22, 2017
    Posts:
    6
  9. Snoober

    Snoober

    Joined:
    Feb 11, 2020
    Posts:
    5
    On Solus the only editor I can get autocomplete to work is Rider, which I like but unfortunately is a pay per month IDE.

    I can get VIM and VSCode to work but no autocomplete.
     
  10. finalherizo

    finalherizo

    Joined:
    Nov 12, 2010
    Posts:
    2
    Hi,

    I'm on Ubuntu 20.04 and I found a way to make mine work.
    Basically, I set the env FrameworkPathOverride to /usr/lib/mono/4.5/ before opening vscode. To make that easy, I set that variable from a .desktop file before opening UnityHub.AppImage. And that would pass the variable to vscode.

    The relevant line is
    Code (csharp):
    1.  
    2. Exec=env FrameworkPathOverride=/usr/lib/mono/4.5/ ~/Applications/unity/UnityHub.AppImage
    3.  
     
  11. znigelberit

    znigelberit

    Joined:
    Sep 27, 2020
    Posts:
    1
    Thanks for this post! Solved my problem and a lot of headache.
     
  12. atmanandnagpure31

    atmanandnagpure31

    Joined:
    Jan 15, 2021
    Posts:
    1
    Thank you so much man. You are an absolute genius. Thanks man again!
     
unityunity