Skip to content

OmniSharp.MSBuild.MSBuildProjectSystem, Failed to load project file #430

Closed
@doomchild

Description

@doomchild

I made a brand new solution and project like so:

$ mkdir temp
$ cd temp
$ dotnet new sln
$ dotnet new console
$ dotnet sln add temp.csproj

Then I opened up ~/temp/Program.cs, started the omnisharp server, and looked at the *omnisharp-log* buffer. Here it is:

[22:46:21] Starting OmniSharpServer using project folder/solution file: /Users/{user}/temp/temp.sln
[22:46:21] Using server binary on /Users/{user}/.emacs.d/.cache/omnisharp/server/v1.26.3/run
[22:46:22] INFORMATION: OmniSharp.Stdio.Host, Starting OmniSharp on MacOS 10.13.3 (x64)
[22:46:22] INFORMATION: OmniSharp.MSBuild.Discovery.MSBuildLocator, Located 1 MSBuild instance(s)
            1: StandAlone 15.0 - "/Users/{user}/.emacs.d/.cache/omnisharp/server/v1.26.3/omnisharp/msbuild/15.0/Bin"
[22:46:22] INFORMATION: OmniSharp.MSBuild.Discovery.MSBuildLocator, MSBUILD_EXE_PATH environment variable set to '/Users/{user}/.emacs.d/.cache/omnisharp/server/v1.26.3/omnisharp/msbuild/15.0/Bin/MSBuild.dll'
[22:46:22] INFORMATION: OmniSharp.MSBuild.Discovery.MSBuildLocator, Registered MSBuild instance: StandAlone 15.0 - "/Users/{user}/.emacs.d/.cache/omnisharp/server/v1.26.3/omnisharp/msbuild/15.0/Bin"
            MSBuildExtensionsPath = /Users/{user}/.emacs.d/.cache/omnisharp/server/v1.26.3/omnisharp/msbuild
            CscToolPath = /Users/{user}/.emacs.d/.cache/omnisharp/server/v1.26.3/omnisharp/msbuild/15.0/Bin/Roslyn
            CscToolExe = csc.exe
            MSBuildToolsPath = /Users/{user}/.emacs.d/.cache/omnisharp/server/v1.26.3/omnisharp/msbuild/15.0/Bin
[22:46:22] INFORMATION: OmniSharp.Cake.CakeProjectSystem, Detecting Cake files in '/Users/{user}/temp'.
[22:46:22] INFORMATION: OmniSharp.Cake.CakeProjectSystem, Could not find any Cake files
[22:46:22] INFORMATION: OmniSharp.DotNet.DotNetProjectSystem, Initializing in /Users/{user}/temp
[22:46:22] INFORMATION: OmniSharp.DotNet.DotNetProjectSystem, Auto package restore: False
[22:46:22] INFORMATION: OmniSharp.DotNet.DotNetProjectSystem, Update workspace context
[22:46:22] INFORMATION: OmniSharp.DotNet.DotNetProjectSystem, Resolving projects references
[22:46:22] INFORMATION: OmniSharp.MSBuild.MSBuildProjectSystem, Detecting projects in '/Users/{user}/temp/temp.sln'.
[22:46:22] INFORMATION: OmniSharp.MSBuild.MSBuildProjectSystem, Loading project: /Users/{user}/temp/temp.csproj
[22:46:22] WARNING: OmniSharp.MSBuild.MSBuildProjectSystem, Failed to load project file '/Users/{user}/temp/temp.csproj'.
[22:46:23] INFORMATION: OmniSharp.Script.ScriptProjectSystem, Detecting CSX files in '/Users/{user}/temp'.
[22:46:23] INFORMATION: OmniSharp.Script.ScriptProjectSystem, Could not find any CSX files
[22:46:23] INFORMATION: OmniSharp.Stdio.Host, Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
[22:46:23] INFORMATION: OmniSharp.Stdio.Host, Configuration finished.
[22:46:23] INFORMATION: OmniSharp.Stdio.Host, Omnisharp server running using Stdio at location '/Users/{user}/temp' on host -1.
[22:46:26] <-- 81 /codecheck: ((QuickFixes . []))
[22:46:26] <-- 82 /codecheck: ((QuickFixes . []))
[22:46:29] <-- 83 /codecheck: ((QuickFixes . []))
[22:46:29] <-- 85 /typelookup: ((Type) (Documentation))
[22:46:29] <-- 84 /autocomplete: []
[22:46:29] <-- 86 /codecheck: ((QuickFixes . []))
[22:46:34] <-- 87 /autocomplete: []
[22:46:35] <-- 88 /codecheck: ((QuickFixes . []))

Why didn't Omnisharp load my brand-new project file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions