.net visual studio code error

Hello everybody,

I don’t know what else to do so it’s my last alternative, I’m trying to use Visual Studio Code as an editor in Unity, but it shows the error below.

I’ve already installed .net sdk 6 and 7, .net runtime, visual studio build tools, disable omnisharp modern net, regenerate the script several times, restarted the computer several times, in package manager visual studio is at version 1.2.5

I’m giving up and using visual studio 2019 anyway…

[info]: OmniSharp.Cake.CakeProjectSystem
        Did not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        Detecting projects in 'd:\Projetos\Tankando o Bostil\Tankando o Bostil.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\Projetos\Tankando o Bostil\Assembly-CSharp.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in 'd:\Projetos\Tankando o Bostil'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Did not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location 'd:\Projetos\Tankando o Bostil' on host 13084.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: d:\Projetos\Tankando o Bostil\Assembly-CSharp.csproj
[fail]: OmniSharp.MSBuild.ProjectLoader
        os assemblies de referência para .NETFramework,Version=v4.7.1 não foram encontrados. Para resolver isso, instale o Pacote do Desenvolvedor (SDK/Pacote de Direcionamento) dessa versão do Framework ou redirecione seu aplicativo. É possível baixar Pacotes do Desenvolvedor do .NET Framework em https://aka.ms/msbuild/developerpacks
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'd:\Projetos\Tankando o Bostil\Assembly-CSharp.csproj'.
d:\Projetos\Tankando o Bostil\Assembly-CSharp.csproj
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(1220,5): Error: os assemblies de referência para .NETFramework,Version=v4.7.1 não foram encontrados. Para resolver isso, instale o Pacote do Desenvolvedor (SDK/Pacote de Direcionamento) dessa versão do Framework ou redirecione seu aplicativo. É possível baixar Pacotes do Desenvolvedor do .NET Framework em https://aka.ms/msbuild/developerpacks

[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: d:\Projetos\Tankando o Bostil\Assembly-CSharp.csproj
[warn]: OmniSharp.Roslyn.CSharp.Services.InlayHints.InlayHintService
        Inlay hints requested for document not in workspace Location { FileName = d:\Projetos\Tankando o Bostil\Assets\Scripts\PlayerController.cs, Range = Range { Start = Point { Line = 0, Column = 0 }, End = Point { Line = 23, Column = 0 } } }
[info]: OmniSharp.OmniSharpWorkspace
        Miscellaneous file: d:\Projetos\Tankando o Bostil\Assets\Scripts\PlayerController.cs added to workspace
Received response for /v2/getcodeactions but could not find request.
Received response for /v2/getcodeactions but could not find request.

Solved!!! IIIIRRAAAAA Missed installing Windows: .NET Framework 4.7.1 Developer Pack

Wrong forum, you wanted Unity Engine - Unity Discussions

I’ll move your post.