-
Notifications
You must be signed in to change notification settings - Fork 686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'System' not found after update to dotnet core 3.0 #3290
Comments
I toggled the TargetFramework in client.csproj from netcoreapp3.0 => netcoreapp2.1 => netcoreapp3.0. I did restores, build, run for each transition. I had clean install and didn't have netcore sdk 2.1 installed initially. Prior to this Omnisharp was failing, but failed to capture the log. After netcore 2.1 install, that Omnisharp failed resolved, then I hit this issue. Dotnet Information .NET Core SDK (reflecting any global.json): Runtime Environment: Host (useful for support): .NET Core SDKs installed: .NET Core runtimes installed: To install additional .NET Core runtimes or SDKs: |
I have the same problem, and it worked just fine with the previews and intermediate VS release. |
Same here |
Going back to rc1 makes IDE features work again. |
This is the same problem as described in #3289 As a workaround, you can:
edit: To try it, add the following to your VS Code settings and restart VS Code:
This will download the latest prerelease OmniSharp to your VS Code and hopefully help. Thanks. |
Same issue, I know that it can be fixed by installing visual studio 2019, but if you don't want install full VS2019, you can just install standalone build tools from VS2019, for me it resolved issue https://visualstudio.microsoft.com/downloads/?q=build+tools |
@filipw can you give us an ETA for the fix? |
Same here on Mac. This was working just fine prior to installing .net core 3 |
ACK! Upgrading to |
I can confirm that upgrading Mono (I happen to be running 6.6 Preview) resolves this issue on my MacOS Mojave Macbook Pro. |
if you have this problem and haven't used any of the workarounds mentioned here #3290 (comment) we currently have a new OmniSharp build to test out, which hopefully fixes the issue. I only tested on Windows, but it seems to have fixed it there. To try it, add the following to your VS Code settings and restart VS Code:
This will download the latest prerelease OmniSharp to your VS Code and hopefully help. Thanks. |
Just tested "omnisharp.path": "1.34.4-beta.7" on Mac ... it doesn't seem to fix the issue here. |
I also just tried it and can confirm it did not work for me on Debian 10 with the default
This is the <Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>
</Project> |
ugh thanks. On *nix things are a bit complicated because we are shipping an embedded mono runtime, which is based on 5.18.1, looks like we may need to move to 6.0.0. What is interesting is that when you have Mono installed, even if you don't use it in VS Code to run OmniSharp but still you run in Standalone mode (so no global Mono enabled in VS Code), because of how we pick up MSBuildExtensionsPath and TargetFrameworkRootPath from global Mono "behind the scenes", things work fine.
|
This might be old news but I upgraded mono to the nightly build and everything started working. FYI, I'm getting "Not Found" page from the when trying to download the stable builds on mac mono-project. |
@DustinCampbell would be able to give us some time to help solidify the process for building the embedded mono runtime, including things like getting it so that we can ship it to the Azure Storage account? |
I recently had this issue when I had the 3.0 sdk and the 2.2.102 sdks installed. After uninstalling the 2.2.102 sdk, the issue went away. Perhaps this will help others. |
Using the beta of OmniSharp
mentioned here fixed this for me on Win10! |
I got it fixed on my Fedora 30 by removing all the other SDKs and only having .Net Core 3 installed. |
Removing the other SDKS (2.1 and 2.2 in my case) got it working for me (Ubuntu 18.04) I'm not sure if this affected the prereleases because microsoft have chosen not to provide prerelease packages for linux and thus do not get the benefit of my testing. |
I installed Mono 6.4.0 from here https://www.mono-project.com/download/stable/ |
Same issue here, using netcoreapp3.0 in TargetFramework gives errors all over. |
Like @squalsoft I installed Mono 6.4.0 from https://www.mono-project.com/download/stable/ |
I upgraded my ancient Visual Studio for Mac to latest, and errors went away as well. |
I'm on Ubuntu 18.04, and I got it to work by removing older versions of my sdks/runtimes, and potentially needing to point to the beta version of omnisharp as mentioned above by editing the settings in vs code.
removed the old SDKs by following this documentation https://docs.microsoft.com/en-us/dotnet/core/versions/remove-runtime-sdk-versions?tabs=linux |
I can confirm that the beta build (1.34.4-beta.7) with fix works for Windows 10 Pro. Many thanks! |
@filipw - beta build (1.34.4-beta.7) works for Windows 10 Home. Excellent! |
@filipw ok, thanks! |
Extension 1.21.4 with OmniSharp 1.34.4 and the fix above has been released - please update 😀 |
I am still getting the dreaded incorrect syntax highliting in VS code. I finally got it working at some point yesterday when I had Omnisharp configured to use the latest build, but then this morning all the errors came back. I tried filipw's suggestion of now removing the line completely but that didn't work. Here's the log from Omnisharp: Starting OmniSharp server at 2019-10-04 09 h 39 min 33 s OmniSharp server started. Starting OmniSharp on Windows 6.1.7601.65536 (x64) |
|
Extension version 1.21.4 fixed the issue. |
Thank you guys for your quick answers, however, I can confirm that I am still getting the errors. I am now using version 1.21.4 and not using my VS community, the errors are appearing in VS Code. |
Ok I got it working again. You guys were right. The MSBuild that was being used was the one from VS community even though I was running VS Code and my Community was outdated. Uninstalling Community did the trick. Thanks! |
I have this problem even though I have C# extension version 1.21.4 and VSCode version 1.38.1. There are spaces and accented characters in the project path. Could that be the problem? OS: Lubuntu 18.04 About VSCode: |
please post your Omnisharp log - thanks |
The same problem as @thinslice but on Ubuntu 18.04 with .net core 3.0 only installed
Omnisharp log from vs code
With omnisharp.json file in open folder the .vscode is created and project run properly
|
how did you install dotnet core SDK, was it snap installed? |
Installed by install scripts: https://dotnet.microsoft.com/download/linux-package-manager/ubuntu18-04/sdk-3.0.100 Snap has been installed because I didin't have 'dotnet' command after installation. |
@filipw I still have this issue with dotnet
OmniSharp Logs
|
In my case, I have an outdated Visual Studio 2019. I saw in the logs that Omnisharp is using the one inside the Visual Studio 2019 installation. I updated VS 2019 to the latest version ( the one that supports .NET Core 3.0) and the error in VScode was gone after :) |
Same problem here on MacOS. I have mono 6.4.0 installed via Homebrew. Using beta omnisharp version
Using the default project created using
|
I found a solution here: #2147 (comment) I have Ugh, took a lot of effort to trace this though! Ping @davidcv5, do you have So to summarize, my environment:
|
@koliyo I'm using vscode, nothing has worked for me so far, so had to change to full visual studio for mac in the meantime, but don't like it as much as vscode. Visual Studio 2019 for Mac 8.4 Preview works just fine. |
+1 also having this problem on mac. dotnet --info
Omnisharp log
|
I was able to resolve this issue by uninstalling mono via brew and letting omnisharp use the MSBuild that it ships with. As a note for the omnisharp team I was on the latest version of mono via brew. |
Setting |
That's work! |
This issue basically saved my day. Today I decided to learn how to make c# web apps with .net. |
thank you @filipw, I just update msbuild on visual studio 2019 |
I had this problem on macOS and had Mono 6.8.0.96 installed via Homebrew. When I installed Mono 6.8.0 (Visual Studio channel) from the Mono website it finally started working. |
Issue Description
Steps to Reproduce
Expected Behavior
Actual Behavior
Logs
OmniSharp log
OmniSharp server started.
Path: /home/daniel/.vscode/extensions/ms-vscode.csharp-1.21.3/.omnisharp/1.34.3/run
PID: 6357
Starting OmniSharp on ubuntu 18.4 (x64)
info: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 1 MSBuild instance(s)
1: StandAlone 16.0 - "/home/daniel/.vscode/extensions/ms-vscode.csharp-1.21.3/.omnisharp/1.34.3/omnisharp/.msbuild/Current/Bin"
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
MSBUILD_EXE_PATH environment variable set to '/home/daniel/.vscode/extensions/ms-vscode.csharp-1.21.3/.omnisharp/1.34.3/omnisharp/.msbuild/Current/Bin/MSBuild.dll'
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: StandAlone 16.0 - "/home/daniel/.vscode/extensions/ms-vscode.csharp-1.21.3/.omnisharp/1.34.3/omnisharp/.msbuild/Current/Bin"
MSBuildExtensionsPath = /home/daniel/.vscode/extensions/ms-vscode.csharp-1.21.3/.omnisharp/1.34.3/omnisharp/.msbuild
BypassFrameworkInstallChecks = true
CscToolPath = /home/daniel/.vscode/extensions/ms-vscode.csharp-1.21.3/.omnisharp/1.34.3/omnisharp/.msbuild/Current/Bin/Roslyn
CscToolExe = csc.exe
MSBuildToolsPath = /home/daniel/.vscode/extensions/ms-vscode.csharp-1.21.3/.omnisharp/1.34.3/omnisharp/.msbuild/Current/Bin
TargetFrameworkRootPath = /usr/lib/mono/xbuild-frameworks
info: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in '/home/daniel/Work/test'.
info: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
info: OmniSharp.MSBuild.ProjectSystem
No solution files found in '/home/daniel/Work/test'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/home/daniel/Work/test/test.csproj'
info: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in '/home/daniel/Work/test'.
info: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
info: OmniSharp.MSBuild.ProjectManager
Loading project: /home/daniel/Work/test/test.csproj
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.EditorConfigWorkspaceOptionsProvider, Order: 200
info: OmniSharp.WorkspaceInitializer
Configuration finished.
info: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location '/home/daniel/Work/test' on host 6235.
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file '/home/daniel/Work/test/test.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project '/home/daniel/Work/test/test.csproj'
info: OmniSharp.MSBuild.ProjectManager
Update project: test
[warn]: OmniSharp.MSBuild.PackageDependencyChecker
test: Did not find 'Microsoft.NETCore.App' in lock file.
C# log
NA
Environment information
VSCode version: 1.38.1
C# Extension: 1.21.3
Mono Information
OmniSharp using built-in monoDotnet Information
.NET Core SDK (reflecting any global.json): Version: 3.0.100 Commit: 04339c3a26Runtime Environment:
OS Name: ubuntu
OS Version: 18.04
OS Platform: Linux
RID: ubuntu.18.04-x64
Base Path: /usr/share/dotnet/sdk/3.0.100/
Host (useful for support):
Version: 3.0.0
Commit: 95a0a61858
.NET Core SDKs installed:
2.1.802 [/usr/share/dotnet/sdk]
2.2.402 [/usr/share/dotnet/sdk]
3.0.100 [/usr/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.13 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.7 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.13 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.7 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.0.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.13 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.7 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Visual Studio Code Extensions
The text was updated successfully, but these errors were encountered: