Unity - Omnisharp not working

Hi, can you please help? I started the Complete Unity 2 D developer course about two months ago. The issue appeared straight away, i loaded my first script and i am getting multiple Onmisharp failure messages. I followed the installation procedure as per the course, but no luck. I then downloaded Unity onto my laptop and i am getting exactly the same error messages. I have downloaded the support .net packages as advised. I have scoured the internet for answers and watched countless video’s on Youtube, but i cannot resolve this. Am i missing something really simple? I have been through the error messages and i am truly stuck. Can some please help, as i am about to through the towel in. Please find below the fail messages .Thank you in advance

fail]: OmniSharp.MSBuild.ProjectLoader

    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
    Failed to load project file 'c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\UnityEngine.TestRunner.csproj'.

c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\UnityEngine.TestRunner.csproj

C:\Program Files\dotnet\sdk\7.0.102\Microsoft.Common.CurrentVersion.targets(1229,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

    Loading project: c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\UnityEngine.UI.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
    Failed to load project file 'c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\UnityEngine.UI.csproj'.

c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\UnityEngine.UI.csproj

C:\Program Files\dotnet\sdk\7.0.102\Microsoft.Common.CurrentVersion.targets(1229,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

    Loading project: c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.VisualScripting.Flow.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
    Failed to load project file 'c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.VisualScripting.Flow.csproj'.

c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.VisualScripting.Flow.csproj

C:\Program Files\dotnet\sdk\7.0.102\Microsoft.Common.CurrentVersion.targets(1229,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

    Loading project: c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.Mathematics.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
    Failed to load project file 'c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.Mathematics.csproj'.

c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.Mathematics.csproj

C:\Program Files\dotnet\sdk\7.0.102\Microsoft.Common.CurrentVersion.targets(1229,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

    Loading project: c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.VisualScripting.State.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
    Failed to load project file 'c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.VisualScripting.State.csproj'.

c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.VisualScripting.State.csproj

C:\Program Files\dotnet\sdk\7.0.102\Microsoft.Common.CurrentVersion.targets(1229,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

    Loading project: c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.VisualScripting.Core.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
    Failed to load project file 'c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.VisualScripting.Core.csproj'.

c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.VisualScripting.Core.csproj

C:\Program Files\dotnet\sdk\7.0.102\Microsoft.Common.CurrentVersion.targets(1229,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

    Loading project: c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.Burst.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
    Failed to load project file 'c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.Burst.csproj'.

c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.Burst.csproj

C:\Program Files\dotnet\sdk\7.0.102\Microsoft.Common.CurrentVersion.targets(1229,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

    Loading project: c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.2D.Animation.Runtime.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
    Failed to load project file 'c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.2D.Animation.Runtime.csproj'.

c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.2D.Animation.Runtime.csproj

C:\Program Files\dotnet\sdk\7.0.102\Microsoft.Common.CurrentVersion.targets(1229,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

    Loading project: c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.TextMeshPro.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
    Failed to load project file 'c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.TextMeshPro.csproj'.

c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.TextMeshPro.csproj

C:\Program Files\dotnet\sdk\7.0.102\Microsoft.Common.CurrentVersion.targets(1229,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

    Loading project: c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.Timeline.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
    Failed to load project file 'c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.Timeline.csproj'.

c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.Timeline.csproj

C:\Program Files\dotnet\sdk\7.0.102\Microsoft.Common.CurrentVersion.targets(1229,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

    Loading project: c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.2D.SpriteShape.Runtime.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
    Failed to load project file 'c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.2D.SpriteShape.Runtime.csproj'.

c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.2D.SpriteShape.Runtime.csproj

C:\Program Files\dotnet\sdk\7.0.102\Microsoft.Common.CurrentVersion.targets(1229,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

    Loading project: c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.2D.PixelPerfect.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
    Failed to load project file 'c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.2D.PixelPerfect.csproj'.

c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.2D.PixelPerfect.csproj

C:\Program Files\dotnet\sdk\7.0.102\Microsoft.Common.CurrentVersion.targets(1229,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

    Loading project: c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.2D.Common.Runtime.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
    Failed to load project file 'c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.2D.Common.Runtime.csproj'.

c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.2D.Common.Runtime.csproj

C:\Program Files\dotnet\sdk\7.0.102\Microsoft.Common.CurrentVersion.targets(1229,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

    Loading project: c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.2D.IK.Runtime.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
    Failed to load project file 'c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.2D.IK.Runtime.csproj'.

c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.2D.IK.Runtime.csproj

C:\Program Files\dotnet\sdk\7.0.102\Microsoft.Common.CurrentVersion.targets(1229,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

    Loading project: c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.2D.Tilemap.Extras.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
    Failed to load project file 'c:\Users\alanh\OneDrive\Documents\Unity Projects\Delivery Driver\Unity.2D.Tilemap.Extras.csproj'.

Hi,

Please follow the instruction on this website and make sure all required extensions are installed: https://code.visualstudio.com/docs/other/unity

If the issue persists, please check the console of VS Code (not Unity!). If the .NET Framework 4.7.1 (Developer Pack) is mentioned there, download and install it from the official Microsoft website. Here is the link: https://dotnet.microsoft.com/download/dotnet-framework/net471

I hope this helped. :slight_smile:


See also:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms