Open rodrigofbm opened 2 years ago
the answer is in your log
It looks like you have Mono installed which contains a MSBuild lower than 16.10.0 which is the minimum supported by the configured .NET Core Sdk.
You can set "omnisharp.useModernNet": true
to switch to .NET 6.0 build of OmniSharp which does not use Mono
or
You can set "omnisharp.useGlobalMono": "never"
to skip using your old global Mono installation and only use the local Mono of OmniSharp.
@filipw looks like "omnisharp.useGlobalMono": "never", works. But I got some warnings:
[info]: OmniSharp.MSBuild.ProjectManager
Update project: Interplayers.Authorizer.Management.Api
Can't find custom attr constructor image: /home/torres/Documentos/Builtcode/Interplayers/api/src/Interplayers.Authorizer.Management.Data/bin/Debug/net6.0/Interplayers.Authorizer.Management.Data.dll mtoken: 0x0a000001 due to: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.
Can't find custom attr constructor image: /home/torres/Documentos/Builtcode/Interplayers/api/src/Interplayers.Authorizer.Management.Domain/bin/Debug/net6.0/Interplayers.Authorizer.Management.Domain.dll mtoken: 0x0a000001 due to: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.
Can't find custom attr constructor image: /home/torres/Documentos/Builtcode/Interplayers/api/src/Interplayers.Authorizer.Management.Infra/bin/Debug/net6.0/Interplayers.Authorizer.Management.Infra.dll mtoken: 0x0a000001 due to: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.
Can't find custom attr constructor image: /home/torres/Documentos/Builtcode/Interplayers/api/src/Interplayers.Authorizer.Management.CrossCutting/bin/Debug/net6.0/Interplayers.Authorizer.Management.CrossCutting.dll mtoken: 0x0a000001 due to: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.
[info]: OmniSharp.MSBuild.ProjectManager
Update project: Interplayers.Authorizer.Management.Domain
[info]: OmniSharp.MSBuild.ProjectManager
Update project: Interplayers.Authorizer.Management.CrossCutting
[info]: OmniSharp.MSBuild.ProjectManager
Update project: Interplayers.Authorizer.Management.Infra
[info]: OmniSharp.MSBuild.ProjectManager
Update project: Interplayers.Authorizer.Management.Data
Received response for /v2/getcodeactions but could not find request.
Received response for /v2/getcodeactions but could not find request.
Received response for /quickinfo but could not find request.
Environment data
dotnet --info
output:VS Code version:
C# Extension version: 1.24.0
OmniSharp log
Steps to reproduce
open a C# project
Expected behavior
find .Net SDK
Actual behavior
Do not find .NET SDK
I tried to use the lastest version of Omnisharp but I still got errors. Can someone help me please?