Search Unity

Resolved .net visual studio code error

Discussion in 'Code Editors & IDEs' started by Dyhego, Oct 28, 2022.

  1. Dyhego

    Dyhego

    Joined:
    Mar 16, 2021
    Posts:
    3
    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...

    Code (CSharp):
    1. [info]: OmniSharp.Cake.CakeProjectSystem
    2.         Did not find any Cake files
    3. [info]: OmniSharp.MSBuild.ProjectSystem
    4.         Detecting projects in 'd:\Projetos\Tankando o Bostil\Tankando o Bostil.sln'.
    5. [info]: OmniSharp.MSBuild.ProjectManager
    6.         Queue project update for 'd:\Projetos\Tankando o Bostil\Assembly-CSharp.csproj'
    7. [info]: OmniSharp.Script.ScriptProjectSystem
    8.         Detecting CSX files in 'd:\Projetos\Tankando o Bostil'.
    9. [info]: OmniSharp.Script.ScriptProjectSystem
    10.         Did not find any CSX files
    11. [info]: OmniSharp.WorkspaceInitializer
    12.         Configuration finished.
    13. [info]: OmniSharp.Stdio.Host
    14.         Omnisharp server running using Stdio at location 'd:\Projetos\Tankando o Bostil' on host 13084.
    15. [info]: OmniSharp.MSBuild.ProjectManager
    16.         Loading project: d:\Projetos\Tankando o Bostil\Assembly-CSharp.csproj
    17. [fail]: OmniSharp.MSBuild.ProjectLoader
    18.         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
    19. [warn]: OmniSharp.MSBuild.ProjectManager
    20.         Failed to load project file 'd:\Projetos\Tankando o Bostil\Assembly-CSharp.csproj'.
    21. d:\Projetos\Tankando o Bostil\Assembly-CSharp.csproj
    22. 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
    23.  
    24. [fail]: OmniSharp.MSBuild.ProjectManager
    25.         Attempted to update project that is not loaded: d:\Projetos\Tankando o Bostil\Assembly-CSharp.csproj
    26. [warn]: OmniSharp.Roslyn.CSharp.Services.InlayHints.InlayHintService
    27.         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 } } }
    28. [info]: OmniSharp.OmniSharpWorkspace
    29.         Miscellaneous file: d:\Projetos\Tankando o Bostil\Assets\Scripts\PlayerController.cs added to workspace
    30. Received response for /v2/getcodeactions but could not find request.
    31. Received response for /v2/getcodeactions but could not find request.
     
  2. Dyhego

    Dyhego

    Joined:
    Mar 16, 2021
    Posts:
    3
    Solved!!!! IIIIRRAAAAA Missed installing Windows: .NET Framework 4.7.1 Developer Pack
     
  3. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,459