Omnisharp-vscode: C# Extension Stopped Working on Linux

Created on 10 May 2019  路  17Comments  路  Source: OmniSharp/omnisharp-vscode

Issue Description

C# extension stopped working properly on Linux. I've been using this development environment for nearly a year without issues, and today all the sudden it won't work. I see some errors logged in the Omnisharp console, and I cannot navigate through my project by ctrl+clicking on types as I used to be. This is probably due to some component update, but I don't know which.

VSCode also shows a pop up time to time with the error: "Some projects have trouble loading. Please review the output for more details."

Logs

OmniSharp log

Starting OmniSharp server at 5/9/2019, 3:39:37 PM
    Target: /usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet

OmniSharp server started with Mono 5.18.0.
    Path: /usr/local/google/home/hkj/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/OmniSharp.exe
    PID: 28462

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on debian 0.0 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 1 MSBuild instance(s)
            1: StandAlone 15.0 - "/usr/local/google/home/hkj/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        MSBUILD_EXE_PATH environment variable set to '/usr/local/google/home/hkj/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin/MSBuild.dll'
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: StandAlone 15.0 - "/usr/local/google/home/hkj/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin"
            MSBuildExtensionsPath = /usr/lib/mono/xbuild
            BypassFrameworkInstallChecks = true
            CscToolPath = /usr/local/google/home/hkj/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin/Roslyn
            CscToolExe = csc.exe
            MSBuildToolsPath = /usr/local/google/home/hkj/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin
            TargetFrameworkRootPath = /usr/lib/mono/xbuild-frameworks
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.WorkspaceInitializer
        Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
[info]: OmniSharp.MSBuild.ProjectSystem
        No solution files found in '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet/FirebaseAdmin/FirebaseAdmin/FirebaseAdmin.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet/FirebaseAdmin/FirebaseAdmin.IntegrationTests/FirebaseAdmin.IntegrationTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet/FirebaseAdmin/FirebaseAdmin.Snippets/FirebaseAdmin.Snippets.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet/FirebaseAdmin/FirebaseAdmin.Tests/FirebaseAdmin.Tests.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet' on host 28324.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet/FirebaseAdmin/FirebaseAdmin/FirebaseAdmin.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet/FirebaseAdmin/FirebaseAdmin/FirebaseAdmin.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet/FirebaseAdmin/FirebaseAdmin/FirebaseAdmin.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet/FirebaseAdmin/FirebaseAdmin.IntegrationTests/FirebaseAdmin.IntegrationTests.csproj
[fail]: OmniSharp.MSBuild.ProjectLoader
        The "GetReferenceNearestTargetFrameworkTask" task failed unexpectedly.
System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at System.Collections.Generic.LargeArrayBuilder`1[T].GetBuffer (System.Int32 index) [0x00022] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.LargeArrayBuilder`1[T].CopyTo (System.Collections.Generic.CopyPosition position, T[] array, System.Int32 arrayIndex, System.Int32 count) [0x00041] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.SparseArrayBuilder`1[T].CopyTo (T[] array, System.Int32 arrayIndex, System.Int32 count) [0x0009a] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.SparseArrayBuilder`1[T].ToArray () [0x00028] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Linq.Enumerable+Concat2Iterator`1[TSource].ToArray () [0x00024] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00021] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at NuGet.Frameworks.DefaultFrameworkMappings.get_CompatibilityMappings () [0x00462] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.FrameworkNameProvider.InitMappings (System.Collections.Generic.IEnumerable`1[T] mappings) [0x00055] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.FrameworkNameProvider..ctor (System.Collections.Generic.IEnumerable`1[T] mappings, System.Collections.Generic.IEnumerable`1[T] portableMappings) [0x0010e] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.DefaultFrameworkNameProvider..ctor () [0x0001c] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.DefaultFrameworkNameProvider.get_Instance () [0x00007] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.NuGetFramework.Parse (System.String folderName) [0x00000] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask.TryParseFramework (System.String framework, System.String errorMessage, NuGet.Build.MSBuildLogger logger, NuGet.Frameworks.NuGetFramework& nugetFramework) [0x00000] in <409b2dbc2e9a42f2985ae2d466161a52>:0 
  at NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask.Execute () [0x00108] in <409b2dbc2e9a42f2985ae2d466161a52>:0 
  at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00029] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x00212] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet/FirebaseAdmin/FirebaseAdmin.IntegrationTests/FirebaseAdmin.IntegrationTests.csproj'.
/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet/FirebaseAdmin/FirebaseAdmin.IntegrationTests/FirebaseAdmin.IntegrationTests.csproj
/usr/local/google/home/hkj/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1677,5): Error: The "GetReferenceNearestTargetFrameworkTask" task failed unexpectedly.
System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at System.Collections.Generic.LargeArrayBuilder`1[T].GetBuffer (System.Int32 index) [0x00022] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.LargeArrayBuilder`1[T].CopyTo (System.Collections.Generic.CopyPosition position, T[] array, System.Int32 arrayIndex, System.Int32 count) [0x00041] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.SparseArrayBuilder`1[T].CopyTo (T[] array, System.Int32 arrayIndex, System.Int32 count) [0x0009a] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.SparseArrayBuilder`1[T].ToArray () [0x00028] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Linq.Enumerable+Concat2Iterator`1[TSource].ToArray () [0x00024] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00021] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at NuGet.Frameworks.DefaultFrameworkMappings.get_CompatibilityMappings () [0x00462] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.FrameworkNameProvider.InitMappings (System.Collections.Generic.IEnumerable`1[T] mappings) [0x00055] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.FrameworkNameProvider..ctor (System.Collections.Generic.IEnumerable`1[T] mappings, System.Collections.Generic.IEnumerable`1[T] portableMappings) [0x0010e] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.DefaultFrameworkNameProvider..ctor () [0x0001c] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.DefaultFrameworkNameProvider.get_Instance () [0x00007] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.NuGetFramework.Parse (System.String folderName) [0x00000] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask.TryParseFramework (System.String framework, System.String errorMessage, NuGet.Build.MSBuildLogger logger, NuGet.Frameworks.NuGetFramework& nugetFramework) [0x00000] in <409b2dbc2e9a42f2985ae2d466161a52>:0 
  at NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask.Execute () [0x00108] in <409b2dbc2e9a42f2985ae2d466161a52>:0 
  at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00029] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x00212] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 

[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet/FirebaseAdmin/FirebaseAdmin.Snippets/FirebaseAdmin.Snippets.csproj
[fail]: OmniSharp.MSBuild.ProjectLoader
        The "GetReferenceNearestTargetFrameworkTask" task failed unexpectedly.
System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at System.Collections.Generic.LargeArrayBuilder`1[T].GetBuffer (System.Int32 index) [0x00022] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.LargeArrayBuilder`1[T].CopyTo (System.Collections.Generic.CopyPosition position, T[] array, System.Int32 arrayIndex, System.Int32 count) [0x00041] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.SparseArrayBuilder`1[T].CopyTo (T[] array, System.Int32 arrayIndex, System.Int32 count) [0x0009a] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.SparseArrayBuilder`1[T].ToArray () [0x00028] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Linq.Enumerable+Concat2Iterator`1[TSource].ToArray () [0x00024] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00021] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at NuGet.Frameworks.DefaultFrameworkMappings.get_CompatibilityMappings () [0x00462] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.FrameworkNameProvider.InitMappings (System.Collections.Generic.IEnumerable`1[T] mappings) [0x00055] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.FrameworkNameProvider..ctor (System.Collections.Generic.IEnumerable`1[T] mappings, System.Collections.Generic.IEnumerable`1[T] portableMappings) [0x0010e] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.DefaultFrameworkNameProvider..ctor () [0x0001c] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.DefaultFrameworkNameProvider.get_Instance () [0x00007] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.NuGetFramework.Parse (System.String folderName) [0x00000] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask.TryParseFramework (System.String framework, System.String errorMessage, NuGet.Build.MSBuildLogger logger, NuGet.Frameworks.NuGetFramework& nugetFramework) [0x00000] in <409b2dbc2e9a42f2985ae2d466161a52>:0 
  at NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask.Execute () [0x00108] in <409b2dbc2e9a42f2985ae2d466161a52>:0 
  at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00029] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x00212] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet/FirebaseAdmin/FirebaseAdmin.Snippets/FirebaseAdmin.Snippets.csproj'.
/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet/FirebaseAdmin/FirebaseAdmin.Snippets/FirebaseAdmin.Snippets.csproj
/usr/local/google/home/hkj/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1677,5): Error: The "GetReferenceNearestTargetFrameworkTask" task failed unexpectedly.
System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at System.Collections.Generic.LargeArrayBuilder`1[T].GetBuffer (System.Int32 index) [0x00022] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.LargeArrayBuilder`1[T].CopyTo (System.Collections.Generic.CopyPosition position, T[] array, System.Int32 arrayIndex, System.Int32 count) [0x00041] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.SparseArrayBuilder`1[T].CopyTo (T[] array, System.Int32 arrayIndex, System.Int32 count) [0x0009a] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.SparseArrayBuilder`1[T].ToArray () [0x00028] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Linq.Enumerable+Concat2Iterator`1[TSource].ToArray () [0x00024] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00021] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at NuGet.Frameworks.DefaultFrameworkMappings.get_CompatibilityMappings () [0x00462] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.FrameworkNameProvider.InitMappings (System.Collections.Generic.IEnumerable`1[T] mappings) [0x00055] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.FrameworkNameProvider..ctor (System.Collections.Generic.IEnumerable`1[T] mappings, System.Collections.Generic.IEnumerable`1[T] portableMappings) [0x0010e] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.DefaultFrameworkNameProvider..ctor () [0x0001c] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.DefaultFrameworkNameProvider.get_Instance () [0x00007] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.NuGetFramework.Parse (System.String folderName) [0x00000] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask.TryParseFramework (System.String framework, System.String errorMessage, NuGet.Build.MSBuildLogger logger, NuGet.Frameworks.NuGetFramework& nugetFramework) [0x00000] in <409b2dbc2e9a42f2985ae2d466161a52>:0 
  at NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask.Execute () [0x00108] in <409b2dbc2e9a42f2985ae2d466161a52>:0 
  at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00029] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x00212] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 

[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet/FirebaseAdmin/FirebaseAdmin.Tests/FirebaseAdmin.Tests.csproj
[fail]: OmniSharp.MSBuild.ProjectLoader
        The "GetReferenceNearestTargetFrameworkTask" task failed unexpectedly.
System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at System.Collections.Generic.LargeArrayBuilder`1[T].GetBuffer (System.Int32 index) [0x00022] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.LargeArrayBuilder`1[T].CopyTo (System.Collections.Generic.CopyPosition position, T[] array, System.Int32 arrayIndex, System.Int32 count) [0x00041] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.SparseArrayBuilder`1[T].CopyTo (T[] array, System.Int32 arrayIndex, System.Int32 count) [0x0009a] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.SparseArrayBuilder`1[T].ToArray () [0x00028] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Linq.Enumerable+Concat2Iterator`1[TSource].ToArray () [0x00024] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00021] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at NuGet.Frameworks.DefaultFrameworkMappings.get_CompatibilityMappings () [0x00462] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.FrameworkNameProvider.InitMappings (System.Collections.Generic.IEnumerable`1[T] mappings) [0x00055] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.FrameworkNameProvider..ctor (System.Collections.Generic.IEnumerable`1[T] mappings, System.Collections.Generic.IEnumerable`1[T] portableMappings) [0x0010e] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.DefaultFrameworkNameProvider..ctor () [0x0001c] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.DefaultFrameworkNameProvider.get_Instance () [0x00007] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.NuGetFramework.Parse (System.String folderName) [0x00000] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask.TryParseFramework (System.String framework, System.String errorMessage, NuGet.Build.MSBuildLogger logger, NuGet.Frameworks.NuGetFramework& nugetFramework) [0x00000] in <409b2dbc2e9a42f2985ae2d466161a52>:0 
  at NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask.Execute () [0x00108] in <409b2dbc2e9a42f2985ae2d466161a52>:0 
  at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00029] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x00212] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet/FirebaseAdmin/FirebaseAdmin.Tests/FirebaseAdmin.Tests.csproj'.
/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet/FirebaseAdmin/FirebaseAdmin.Tests/FirebaseAdmin.Tests.csproj
/usr/local/google/home/hkj/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1677,5): Error: The "GetReferenceNearestTargetFrameworkTask" task failed unexpectedly.
System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at System.Collections.Generic.LargeArrayBuilder`1[T].GetBuffer (System.Int32 index) [0x00022] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.LargeArrayBuilder`1[T].CopyTo (System.Collections.Generic.CopyPosition position, T[] array, System.Int32 arrayIndex, System.Int32 count) [0x00041] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.SparseArrayBuilder`1[T].CopyTo (T[] array, System.Int32 arrayIndex, System.Int32 count) [0x0009a] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.SparseArrayBuilder`1[T].ToArray () [0x00028] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Linq.Enumerable+Concat2Iterator`1[TSource].ToArray () [0x00024] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00021] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at NuGet.Frameworks.DefaultFrameworkMappings.get_CompatibilityMappings () [0x00462] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.FrameworkNameProvider.InitMappings (System.Collections.Generic.IEnumerable`1[T] mappings) [0x00055] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.FrameworkNameProvider..ctor (System.Collections.Generic.IEnumerable`1[T] mappings, System.Collections.Generic.IEnumerable`1[T] portableMappings) [0x0010e] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.DefaultFrameworkNameProvider..ctor () [0x0001c] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.DefaultFrameworkNameProvider.get_Instance () [0x00007] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Frameworks.NuGetFramework.Parse (System.String folderName) [0x00000] in <5337e456fd6d42eb9a9378dd0c6d35e0>:0 
  at NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask.TryParseFramework (System.String framework, System.String errorMessage, NuGet.Build.MSBuildLogger logger, NuGet.Frameworks.NuGetFramework& nugetFramework) [0x00000] in <409b2dbc2e9a42f2985ae2d466161a52>:0 
  at NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask.Execute () [0x00108] in <409b2dbc2e9a42f2985ae2d466161a52>:0 
  at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00029] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x00212] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 

[info]: OmniSharp.MSBuild.ProjectManager
        Update project: FirebaseAdmin
[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: /usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet/FirebaseAdmin/FirebaseAdmin.IntegrationTests/FirebaseAdmin.IntegrationTests.csproj
[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: /usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet/FirebaseAdmin/FirebaseAdmin.Snippets/FirebaseAdmin.Snippets.csproj
[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: /usr/local/google/home/hkj/Projects/firebase-admin-dotnet/temp/firebase-admin-dotnet/FirebaseAdmin/FirebaseAdmin.Tests/FirebaseAdmin.Tests.csproj

C# log

Nothing logged. Empty.

Environment information

VSCode version: 1.33.1
C# Extension: 1.19.1

Mono Information
OmniSharp using global mono :5.18.0

Dotnet Information
.NET Command Line Tools (2.1.102)

Product Information:
Version: 2.1.102
Commit SHA-1 hash: 8d409357db

Runtime Environment:
OS Name: debian
OS Version:
OS Platform: Linux
RID: debian-x64
Base Path: /usr/local/google/home/hkj/Software/dotnetsdk-2.1.102/sdk/2.1.102/

Microsoft .NET Core Shared Framework Host

Version : 2.0.6
Build : 74b1c703813c8910df5b96f304b0f2b78cdf194d


Visual Studio Code Extensions

|Extension|Author|Version|
|---|---|---|
|csharp|ms-vscode|1.19.1|
|Go|ms-vscode|0.10.2|
|java|redhat|0.44.0|
|java-generate-setters-getters|sohibe|4.2.1|
|python|ms-python|2019.4.12954|
|vscode-java-debug|vscjava|0.18.0|
|vscode-java-dependency|vscjava|0.4.0|
|vscode-java-pack|vscjava|0.7.1|
|vscode-java-test|vscjava|0.16.0|
|vscode-maven|vscjava|0.16.2|
|vscode-typescript-tslint-plugin|ms-vscode|1.0.0|
|vscodeintellicode|VisualStudioExptTeam|1.1.6|;

Mono-related

Most helpful comment

@hiranya911 Could you try setting "omnisharp.useGlobalMono": never. This will run omnisharp on the mono that is packed in the omnisharp bits that we ship.

All 17 comments

On another project in the same machine, I see the following error logs:

[fail]: OmniSharp.MSBuild.ProjectLoader
        The "CheckForTargetInAssetsFile" task failed unexpectedly.
System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at System.Collections.Generic.LargeArrayBuilder`1[T].GetBuffer (System.Int32 index) [0x00022] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.LargeArrayBuilder`1[T].CopyTo (System.Collections.Generic.CopyPosition position, T[] array, System.Int32 arrayIndex, System.Int32 count) [0x00041] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.SparseArrayBuilder`1[T].CopyTo (T[] array, System.Int32 arrayIndex, System.Int32 count) [0x0009a] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.SparseArrayBuilder`1[T].ToArray () [0x00028] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Linq.Enumerable+Concat2Iterator`1[TSource].ToArray () [0x00024] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00021] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at NuGet.Frameworks.DefaultFrameworkMappings.get_CompatibilityMappings () [0x0044f] in <a8ffdabdf9ea433b9265469883b8e7df>:0 
  at NuGet.Frameworks.FrameworkNameProvider.InitMappings (System.Collections.Generic.IEnumerable`1[T] mappings) [0x00055] in <a8ffdabdf9ea433b9265469883b8e7df>:0 
  at NuGet.Frameworks.FrameworkNameProvider..ctor (System.Collections.Generic.IEnumerable`1[T] mappings, System.Collections.Generic.IEnumerable`1[T] portableMappings) [0x0010e] in <a8ffdabdf9ea433b9265469883b8e7df>:0 
  at NuGet.Frameworks.DefaultFrameworkNameProvider..ctor () [0x0001c] in <a8ffdabdf9ea433b9265469883b8e7df>:0 
  at NuGet.Frameworks.DefaultFrameworkNameProvider.get_Instance () [0x00007] in <a8ffdabdf9ea433b9265469883b8e7df>:0 
  at NuGet.Frameworks.NuGetFramework.Parse (System.String folderName) [0x00000] in <a8ffdabdf9ea433b9265469883b8e7df>:0 
  at Microsoft.NET.Build.Tasks.NuGetUtils.ParseFrameworkName (System.String frameworkName) [0x00003] in <9aa8293a966a47edafd867467d8d7f15>:0 
  at Microsoft.NET.Build.Tasks.CheckForTargetInAssetsFile.ExecuteCore () [0x0001c] in <9aa8293a966a47edafd867467d8d7f15>:0 
  at Microsoft.NET.Build.Tasks.TaskBase.Execute () [0x00000] in <9aa8293a966a47edafd867467d8d7f15>:0 
  at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00029] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x00212] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/public/FirebaseAdmin/FirebaseAdmin/FirebaseAdmin.csproj'.
/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/public/FirebaseAdmin/FirebaseAdmin/FirebaseAdmin.csproj
/usr/local/google/home/hkj/Software/dotnetsdk-2.1.102/sdk/2.1.102/Sdks/Microsoft.NET.Sdk/build/Microsoft.PackageDependencyResolution.targets(167,5): Error: The "CheckForTargetInAssetsFile" task failed unexpectedly.
System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at System.Collections.Generic.LargeArrayBuilder`1[T].GetBuffer (System.Int32 index) [0x00022] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.LargeArrayBuilder`1[T].CopyTo (System.Collections.Generic.CopyPosition position, T[] array, System.Int32 arrayIndex, System.Int32 count) [0x00041] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.SparseArrayBuilder`1[T].CopyTo (T[] array, System.Int32 arrayIndex, System.Int32 count) [0x0009a] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Collections.Generic.SparseArrayBuilder`1[T].ToArray () [0x00028] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Linq.Enumerable+Concat2Iterator`1[TSource].ToArray () [0x00024] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00021] in <13c0993ff82548209b09f271bd5e6a78>:0 
  at NuGet.Frameworks.DefaultFrameworkMappings.get_CompatibilityMappings () [0x0044f] in <a8ffdabdf9ea433b9265469883b8e7df>:0 
  at NuGet.Frameworks.FrameworkNameProvider.InitMappings (System.Collections.Generic.IEnumerable`1[T] mappings) [0x00055] in <a8ffdabdf9ea433b9265469883b8e7df>:0 
  at NuGet.Frameworks.FrameworkNameProvider..ctor (System.Collections.Generic.IEnumerable`1[T] mappings, System.Collections.Generic.IEnumerable`1[T] portableMappings) [0x0010e] in <a8ffdabdf9ea433b9265469883b8e7df>:0 
  at NuGet.Frameworks.DefaultFrameworkNameProvider..ctor () [0x0001c] in <a8ffdabdf9ea433b9265469883b8e7df>:0 
  at NuGet.Frameworks.DefaultFrameworkNameProvider.get_Instance () [0x00007] in <a8ffdabdf9ea433b9265469883b8e7df>:0 
  at NuGet.Frameworks.NuGetFramework.Parse (System.String folderName) [0x00000] in <a8ffdabdf9ea433b9265469883b8e7df>:0 
  at Microsoft.NET.Build.Tasks.NuGetUtils.ParseFrameworkName (System.String frameworkName) [0x00003] in <9aa8293a966a47edafd867467d8d7f15>:0 
  at Microsoft.NET.Build.Tasks.CheckForTargetInAssetsFile.ExecuteCore () [0x0001c] in <9aa8293a966a47edafd867467d8d7f15>:0 
  at Microsoft.NET.Build.Tasks.TaskBase.Execute () [0x00000] in <9aa8293a966a47edafd867467d8d7f15>:0 
  at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00029] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x00212] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 

[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /usr/local/google/home/hkj/Projects/firebase-admin-dotnet/public/FirebaseAdmin/FirebaseAdmin.Tests/FirebaseAdmin.Tests.csproj

Might be related to or a dupe of #3049

I have experienced a similar problem on Linux. Suddenly Omnisharp stopped launching. The output (Log extension Host) show me this info:
[2019-05-10 13:56:26.475] [exthost] [info] extension host started [2019-05-10 13:56:26.616] [exthost] [info] ExtensionService#_doActivateExtension vscode.typescript-language-features {"startup":false,"activationEvent":"onLanguage:javascript"} [2019-05-10 13:56:26.616] [exthost] [info] ExtensionService#loadCommonJSModule /snap/code/6/usr/share/code/resources/app/extensions/typescript-language-features/dist/extension [2019-05-10 13:56:26.706] [exthost] [info] ExtensionService#_doActivateExtension ms-vscode.csharp {"startup":false,"activationEvent":"onLanguage:csharp"} [2019-05-10 13:56:26.706] [exthost] [info] ExtensionService#loadCommonJSModule /home/dlag/.vscode/extensions/ms-vscode.csharp-1.19.1/dist/extension [2019-05-10 13:56:26.957] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch {"startup":true,"activationEvent":"*"} [2019-05-10 13:56:26.957] [exthost] [info] ExtensionService#loadCommonJSModule /snap/code/6/usr/share/code/resources/app/extensions/debug-auto-launch/dist/extension [2019-05-10 13:56:26.962] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet {"startup":true,"activationEvent":"*"}
And so on.
As you can see ms-vscode.csharp shows startup:false.

  • vscode version:
    1.33.1
    x64

  • Dotnet version:
    2.2.203

  • C# Extension version:
    1.19.1

  • Distro version:
    4.15.0-48-generic #51~16.04.1-Ubuntu

Stopped for me too.

I just upgraded to Ubuntu 19.04 with gnome 3.32.0 - it's 100% due to that. It worked before the upgrade. (Did you guys also recently upgrade?)

Is there a fix?

Stopped for me too.

I just upgraded to Ubuntu 19.04 with gnome 3.32.0 - it's 100% due to that. It worked before the upgrade. (Did you guys also recently upgrade?)

Is there a fix?

I think the only thing that I upgrade is vscode to 1.33.1, c# extension to 1.19.X I'm not sure about dotnet.
this is a messss :(

Re-installing mono-devel using the instructions from the mono projects 18.04 section worked for me over on issue 3049 although my Omnisharp warnings and errors logs differed slightly

I fixed my problem - maybe it'll help you. I added the official mono repository, and updated to the latest mono-devel from there.

Same issue here, although it's been the case for a while. Ubuntu 18.04 LTS for me.

I fixed my problem - maybe it'll help you. I added the official mono repository, and updated to the latest mono-devel from there.

The repository is down for me.. it is normal?

@JorgeDLG No it's not normal, mono is a massively important project. Just try again later, it will work.

I found a way, but it isn't the best solution. In vscode by Pressing Control + K , Control + O , and opening the project folder, omnisharp starts.

@JorgeDLG I don't understand your problem, but I'm glad you found a way to fix it. In my case I added the mono repository and then installed the latest mono-devel via apt update.

@hiranya911 Could you try setting "omnisharp.useGlobalMono": never. This will run omnisharp on the mono that is packed in the omnisharp bits that we ship.

Looks like this issue is similar to https://github.com/OmniSharp/omnisharp-vscode/issues/3049 where a mono update rendered omnisharp unusable. Please try the setting as mentioned above.

I will close this issue for now. Please reopen if it still persists

Hi @akshita31. I tried the above setting but to no avail.I'm getting a different error now though:

Starting OmniSharp server at 6/11/2019, 11:44:18 AM
    Target: /usr/local/google/home/hkj/Projects/firebase-admin-dotnet/public/FirebaseAdmin/FirebaseAdmin.sln

OmniSharp server started.
    Path: /usr/local/google/home/hkj/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/run
    PID: 144198

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on debian 0.0 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 1 MSBuild instance(s)
            1: StandAlone 15.0 - "/usr/local/google/home/hkj/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        MSBUILD_EXE_PATH environment variable set to '/usr/local/google/home/hkj/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin/MSBuild.dll'
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: StandAlone 15.0 - "/usr/local/google/home/hkj/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin"
            MSBuildExtensionsPath = /usr/lib/mono/xbuild
            BypassFrameworkInstallChecks = true
            CscToolPath = /usr/local/google/home/hkj/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin/Roslyn
            CscToolExe = csc.exe
            MSBuildToolsPath = /usr/local/google/home/hkj/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin
            TargetFrameworkRootPath = /usr/lib/mono/xbuild-frameworks
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/public/FirebaseAdmin'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.WorkspaceInitializer
        Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
[info]: OmniSharp.MSBuild.ProjectSystem
        Detecting projects in '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/public/FirebaseAdmin/FirebaseAdmin.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/public/FirebaseAdmin/FirebaseAdmin/FirebaseAdmin.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/public/FirebaseAdmin/FirebaseAdmin.Tests/FirebaseAdmin.Tests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/public/FirebaseAdmin/FirebaseAdmin.IntegrationTests/FirebaseAdmin.IntegrationTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/public/FirebaseAdmin/FirebaseAdmin.Snippets/FirebaseAdmin.Snippets.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/public/FirebaseAdmin'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /usr/local/google/home/hkj/Projects/firebase-admin-dotnet/public/FirebaseAdmin/FirebaseAdmin/FirebaseAdmin.csproj
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/public/FirebaseAdmin' on host 144018.
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file '/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/public/FirebaseAdmin/FirebaseAdmin/FirebaseAdmin.csproj'.
/usr/local/google/home/hkj/Projects/firebase-admin-dotnet/public/FirebaseAdmin/FirebaseAdmin/FirebaseAdmin.csproj(1,1)
Microsoft.Build.Exceptions.InvalidProjectFileException: The imported project "/usr/lib/mono/xbuild/15.0/Microsoft.Common.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  /usr/local/google/home/hkj/Software/dotnetsdk-2.2.203/sdk/2.2.203/Sdks/Microsoft.NET.Sdk/Sdk/Sdk.props
  at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject (System.String errorSubCategoryResourceName, Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, System.Object[] args) [0x00040] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Shared.ProjectErrorUtilities.VerifyThrowInvalidProject[T1] (System.Boolean condition, System.String errorSubCategoryResourceName, Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, T1 arg0) [0x00003] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject[T1] (Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, T1 arg0) [0x00000] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].ExpandAndLoadImportsFromUnescapedImportExpression (System.String directoryOfImportingFile, Microsoft.Build.Construction.ProjectImportElement importElement, System.String unescapedExpression, System.Boolean throwOnFileNotExistsError, System.Collections.Generic.List`1[Microsoft.Build.Construction.ProjectRootElement]& imports) [0x005fb] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].ExpandAndLoadImportsFromUnescapedImportExpressionConditioned (System.String directoryOfImportingFile, Microsoft.Build.Construction.ProjectImportElement importElement, System.Collections.Generic.List`1[Microsoft.Build.Construction.ProjectRootElement]& projects, Microsoft.Build.BackEnd.SdkResolution.SdkResult& sdkResult, System.Boolean throwOnFileNotExistsError) [0x00262] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].ExpandAndLoadImports (System.String directoryOfImportingFile, Microsoft.Build.Construction.ProjectImportElement importElement, Microsoft.Build.BackEnd.SdkResolution.SdkResult& sdkResult) [0x00027] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].EvaluateImportElement (System.String directoryOfImportingFile, Microsoft.Build.Construction.ProjectImportElement importElement) [0x0000d] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].PerformDepthFirstPass (Microsoft.Build.Construction.ProjectRootElement currentProjectOrImport) [0x00209] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].EvaluateImportElement (System.String directoryOfImportingFile, Microsoft.Build.Construction.ProjectImportElement importElement) [0x00040] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].PerformDepthFirstPass (Microsoft.Build.Construction.ProjectRootElement currentProjectOrImport) [0x000e6] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].Evaluate (Microsoft.Build.BackEnd.Logging.ILoggingService loggingService, Microsoft.Build.Framework.BuildEventContext buildEventContext) [0x00103] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].Evaluate (Microsoft.Build.Evaluation.IEvaluatorData`4[P,I,M,D] data, Microsoft.Build.Construction.ProjectRootElement root, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, System.Int32 maxNodeCount, Microsoft.Build.Collections.PropertyDictionary`1[T] environmentProperties, Microsoft.Build.BackEnd.Logging.ILoggingService loggingService, Microsoft.Build.Evaluation.IItemFactory`2[S,T] itemFactory, Microsoft.Build.Evaluation.IToolsetProvider toolsetProvider, Microsoft.Build.Evaluation.ProjectRootElementCache projectRootElementCache, Microsoft.Build.Framework.BuildEventContext buildEventContext, Microsoft.Build.BackEnd.SdkResolution.ISdkResolverService sdkResolverService, System.Int32 submissionId, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x0002d] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Project.Reevaluate (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x0005e] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00035] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00000] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00007] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Project.Initialize (System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, System.String subToolsetVersion, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00126] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, System.String subToolsetVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00093] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, System.String subToolsetVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings) [0x00000] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings) [0x00000] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection) [0x00000] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.ProjectCollection.LoadProject (System.String fileName, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion) [0x000f7] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.ProjectCollection.LoadProject (System.String fileName, System.String toolsVersion) [0x00000] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at OmniSharp.MSBuild.ProjectLoader.EvaluateProjectFileCore (System.String filePath) [0x0003f] in <69148e098afe4042aa56606d5bafd188>:0 
  at OmniSharp.MSBuild.ProjectLoader.BuildProject (System.String filePath) [0x0000d] in <69148e098afe4042aa56606d5bafd188>:0 
  at OmniSharp.MSBuild.ProjectFile.ProjectFileInfo.Load (System.String filePath, OmniSharp.MSBuild.ProjectIdInfo projectIdInfo, OmniSharp.MSBuild.ProjectLoader loader) [0x00015] in <69148e098afe4042aa56606d5bafd188>:0 
  at OmniSharp.MSBuild.ProjectManager+<>c__DisplayClass30_0.<LoadProject>b__0 () [0x00000] in <69148e098afe4042aa56606d5bafd188>:0 
  at (wrapper delegate-invoke) System.Func`1[System.ValueTuple`3[OmniSharp.MSBuild.ProjectFile.ProjectFileInfo,System.Collections.Immutable.ImmutableArray`1[OmniSharp.MSBuild.Logging.MSBuildDiagnostic],OmniSharp.MSBuild.Notification.ProjectLoadedEventArgs]].invoke_TResult()
  at OmniSharp.MSBuild.ProjectManager.LoadOrReloadProject (System.String projectFilePath, System.Func`1[TResult] loader) [0x0001b] in <69148e098afe4042aa56606d5bafd188>:0 

@hiranya911 Could you try setting "omnisharp.useGlobalMono": never. This will run omnisharp on the mono that is packed in the omnisharp bits that we ship.

I just upgraded to ubuntu 19.04 and OmniSharp doesnt work anymore until i set the omnisharp.useGlobalMono to never. It worked like a charm

global Mono must be at least 6.4.0, i guess you have an older one

Was this page helpful?
0 / 5 - 0 ratings