dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.88k stars 676 forks source link

Every single line of code is marked as error - Console application #4151

Closed guilmarc closed 2 weeks ago

guilmarc commented 4 years ago

Please paste the output from your clipboard## Issue Description ##

Steps to Reproduce

1- Create a new projet with dotnet new console

Expected Behavior

Correct code should not be marked

Actual Behavior

Every single line of code is marked as error

Logs

OmniSharp log

Post the output from Output-->OmniSharp log here

C# log

Post the output from Output-->C# here

Environment information

VSCode version: 1.50.1 C# Extension: 1.23.4

Mono Information OmniSharp using global mono :6.12.0
Dotnet Information .NET Core SDK (reflecting any global.json): Version: 3.1.402 Commit: 9b5de826fd Runtime Environment: OS Name: Mac OS X OS Version: 10.15 OS Platform: Darwin RID: osx.10.15-x64 Base Path: /usr/local/share/dotnet/sdk/3.1.402/ Host (useful for support): Version: 3.1.8 Commit: 9c1330dedd .NET Core SDKs installed: 2.1.505 [/usr/local/share/dotnet/sdk] 3.0.102 [/usr/local/share/dotnet/sdk] 3.1.402 [/usr/local/share/dotnet/sdk] .NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.0.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.1.9 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.22 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.0.2 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download
Visual Studio Code Extensions |Extension|Author|Version| |---|---|---| |back-n-forth|nick-rudenko|3.1.0| |cpptools|ms-vscode|1.0.1| |csharp|ms-dotnettools|1.23.4| |csharpextensions|jchannon|1.3.1| |debugger-for-chrome|msjsdiag|4.12.11| |dotenv|mikestead|1.0.1| |EditorConfig|EditorConfig|0.15.1| |gitlens|eamodio|10.2.2| |Handlebars|andrejunges|0.4.1| |handlebars-preview|chaliy|1.1.0| |heroku-command|pkosta2005|0.0.8| |html-css-class-completion|Zignd|1.19.0| |JavaScriptSnippets|xabikos|1.8.0| |json|ZainChen|2.0.1| |language-x86-64-assembly|13xforever|2.3.0| |LiveServer|ritwickdey|5.6.1| |material-icon-theme|PKief|4.3.0| |node-essentials|afractal|1.1.0| |node-module-intellisense|leizongmin|1.5.0| |nodejs-extension-pack|waderyan|0.1.9| |non-breaking-space-highlighter|viktorzetterstrom|0.0.3| |npm-intellisense|christian-kohler|1.3.1| |path-intellisense|christian-kohler|2.3.0| |quokka-vscode|WallabyJs|1.0.327| |remote-ssh|ms-vscode-remote|0.55.0| |remote-ssh-edit|ms-vscode-remote|0.55.0| |search-node-modules|jasonnutter|1.3.0| |vetur|octref|0.28.0| |vsc-material-theme|Equinusocio|33.0.0| |vsc-material-theme-icons|equinusocio|1.2.0| |vscode-eslint|dbaeumer|2.1.13| |vscode-exec-node|miramac|0.5.3| |vscode-for-node-js-development-pack|nodesource|2.0.1| |vscode-html-css|ecmel|0.2.3| |vscode-icontheme-nomo-dark|be5invis|1.3.6| |vscode-import-cost|wix|2.12.0| |vscode-jest|Orta|3.2.0| |vscode-kubernetes-tools|ms-kubernetes-tools|1.2.1| |vscode-npm-script|eg2|0.3.13| |vscode-npm-source|dkundel|1.0.0| |vscode-pull-request-github|GitHub|0.20.1| |vscode-typescript-tslint-plugin|ms-vscode|1.2.3| |vscode-yaml|redhat|0.11.1| |vscodeintellicode|VisualStudioExptTeam|1.2.10| |vsliveshare|ms-vsliveshare|1.0.3046| |vsliveshare-audio|ms-vsliveshare|0.1.91| |vue|jcbuisson|0.1.5|;
JoeRobich commented 4 years ago

@guilmarc Sorry you are running into issues. See this note about using .NET 3.1.40x SDKs with the C# extension - https://github.com/OmniSharp/omnisharp-vscode#note-about-using-net-core-3140x-sdks