Skip to content
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

Omnisharp no longer runs on most of my projects #3033

Closed
smashedapples20 opened this issue Apr 30, 2019 · 9 comments
Closed

Omnisharp no longer runs on most of my projects #3033

smashedapples20 opened this issue Apr 30, 2019 · 9 comments

Comments

@smashedapples20
Copy link

smashedapples20 commented Apr 30, 2019

Issue Description

I wish I could try to explain what's going on. OmniSharp is failing to run on most of my project, but I have at least one that it's still working on. I can't find any differences to explain why it runs on some but not on others. The log output doesn't give any hint (to me at least) that anything is even wrong.

The log on the projects that fail to load properly seems to end abruptly after "Adding project …" where the projects that load correctly go on to an "Update project" step.

Steps to Reproduce

Have projects with some package references to NuGet packages stored in an Azure DevOps feed.

One or more of the following:

  • Upgrade to OmniSharp 1.19
  • Update .Net Framework
  • Have some of the tokens on Azure DevOps expire (if this is the problem, how do I update them for OmniSharp to be able to figure this out?)

Expected Behavior

Everything continues to work as normal

Actual Behavior

Seemingly arbitrary projects fail to have the OmniSharp features work

Logs

OmniSharp log

Log of failing project Starting OmniSharp server at 4/30/2019, 10:57:17 AM Target: c:\repos\Redacted\SharedComponents\SharedComponents.sln

OmniSharp server started.
Path: C:\Users\Redacted.vscode\extensions\ms-vscode.csharp-1.19.0.omnisharp\1.32.18\OmniSharp.exe
PID: 10600

Starting OmniSharp on Windows 6.2.9200.0 (x64)
info: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 2 MSBuild instance(s)
1: Visual Studio Professional 2017 15.9.28307.344 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
2: StandAlone 15.0 - "C:\Users\Redacted.vscode\extensions\ms-vscode.csharp-1.19.0.omnisharp\1.32.18.msbuild\Current\Bin"
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: Visual Studio Professional 2017 15.9.28307.344 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
info: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in 'c:\repos\Redacted\SharedComponents'.
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 'c:\repos\Redacted\SharedComponents\SharedComponents.sln'.
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\repos\Redacted\SharedComponents\src\SharedComponents.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\repos\Redacted\SharedComponents\test\SharedComponentsTest.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\repos`Reacted`\SharedComponents\testUtils\SharedComponentsTestUtilities.csproj'
info: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in 'c:\repos\Redacted\SharedComponents'.
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: c:\repos\Redacted\SharedComponents\src\SharedComponents.csproj
info: OmniSharp.WorkspaceInitializer
Configuration finished.
info: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location 'c:\repos\Redacted\SharedComponents' on host 19316.
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'c:\repos\Redacted\SharedComponents\src\SharedComponents.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project 'c:\repos\Redacted\SharedComponents\src\SharedComponents.csproj'

Log of project that still loads properly Starting OmniSharp server at 4/30/2019, 10:43:16 AM Target: c:\repos\Redacted\Core\Core.sln

OmniSharp server started.
Path: C:\Users\Redacted.vscode\extensions\ms-vscode.csharp-1.19.0.omnisharp\1.32.18\OmniSharp.exe
PID: 17772

Starting OmniSharp on Windows 6.2.9200.0 (x64)
info: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 2 MSBuild instance(s)
1: Visual Studio Professional 2017 15.9.28307.344 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
2: StandAlone 15.0 - "C:\Users\Redacted.vscode\extensions\ms-vscode.csharp-1.19.0.omnisharp\1.32.18.msbuild\Current\Bin"
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: Visual Studio Professional 2017 15.9.28307.344 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
info: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in 'c:\repos\Redacted\Core'.
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 'c:\repos\Redacted\Core.sln'.
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\repos\Redacted\Core\src\Core.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\repos\Redacted\Core\test\CoreTest.csproj'
info: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in 'c:\repos\Redacted\Core'.
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: c:\repos\Redacted\Core\src\Core.csproj
info: OmniSharp.WorkspaceInitializer
Configuration finished.
info: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location 'c:\repos\Redacted\Core' on host 5268.
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'c:\repos\Redacted\Core\src\Core.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project 'c:\repos\Redacted\Core\src\Core.csproj'
info: OmniSharp.MSBuild.ProjectManager
Loading project: c:\repos\Redacted\Core\test\CoreTest.csproj
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'c:\repos\Redacted\Core\test\CoreTest.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project 'c:\repos\Redacted\Core\test\CoreTest.csproj'
info: OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects
Skipping code fix provider 'Xunit.Analyzers.FixProviders.MemberFixBase' because it's language doesn't match 'C#'.
info: OmniSharp.MSBuild.ProjectManager
Update project: Core
info: OmniSharp.MSBuild.ProjectManager
Update project: CoreTest

C# log

(empty)

Environment information

VSCode version: 1.33.1
C# Extension: 1.19.0

Dotnet Information .NET Core SDK (reflecting any global.json): Version: 2.2.105 Commit: 7cecb35b92

Runtime Environment:
OS Name: Windows
OS Version: 10.0.17763
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.2.105\

Host (useful for support):
Version: 2.2.3
Commit: 6b8ad509b6

.NET Core SDKs installed:
1.1.9 [C:\Program Files\dotnet\sdk]
1.1.10 [C:\Program Files\dotnet\sdk]
1.1.11 [C:\Program Files\dotnet\sdk]
2.1.201 [C:\Program Files\dotnet\sdk]
2.1.202 [C:\Program Files\dotnet\sdk]
2.1.300 [C:\Program Files\dotnet\sdk]
2.1.402 [C:\Program Files\dotnet\sdk]
2.1.503 [C:\Program Files\dotnet\sdk]
2.2.105 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 1.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.0.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.0.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.1.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.1.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.3 [C:\Program Files\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
azure-account ms-vscode 0.8.2
csharp ms-vscode 1.19.0
docomment k--kato 0.1.6
dotnet-test-explorer formulahendry 0.6.6
gitlens eamodio 9.6.3
material-icon-theme PKief 3.7.0
mssql ms-mssql 1.6.0
powershell ms-vscode 1.12.1
team ms-vsts 1.149.2
Theme-Hail gerane 0.0.3
vscode-azurefunctions ms-azuretools 0.16.0
vscode-great-icons emmanuelbeziat 2.1.47
vscodeintellicode VisualStudioExptTeam 1.1.5
vsliveshare ms-vsliveshare 1.0.91
xml DotJoshJohnson 2.4.0
@smashedapples20
Copy link
Author

I'm doing more debugging...

There appears to be a problem with OmniSharp trying to load projects that have PackageReferences to packages in an Azure DevOps Artifacts feed. I've commented out all of the references to those projects, and things are loading properly now (with lots of red since all of my references are broken now).

@rchande
Copy link

rchande commented Apr 30, 2019

@smashedapples20 OmniSharp expects your projects to be restored. I suspect that if you update your access tokens that this will resolve itself. However, if you want to get more informative logs, you can set the setting "omnisharp.loglevel" to "debug".

@smashedapples20
Copy link
Author

@rchande Everything is restored. Both dotnet restore and nuget restore run fine... I'll try upping the verbosity of the logs.

@smashedapples20
Copy link
Author

Upping to "debug" didn't change the log content.

@rchande
Copy link

rchande commented Apr 30, 2019

@smashedapples20 Sorry, apparently the option is called omnisharp.loggingLevel. Mind trying again?

@smashedapples20
Copy link
Author

I just found that... running now.

@smashedapples20
Copy link
Author

I pared it down to a single project (not in a solution), and now I have the debug output Starting OmniSharp server at 4/30/2019, 11:55:53 AM Target: c:\repos\Redacted\SharedComponents\src

OmniSharp server started.
Path: C:\Users\smash.vscode\extensions\ms-vscode.csharp-1.19.0.omnisharp\1.32.18\OmniSharp.exe
PID: 11496

Loaded OmniSharp.Cake, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
dbug: OmniSharp.CompositionHostBuilder
Loaded OmniSharp.DotNet, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
dbug: OmniSharp.CompositionHostBuilder
Loaded OmniSharp.DotNetTest, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
dbug: OmniSharp.CompositionHostBuilder
Loaded OmniSharp.Host, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
dbug: OmniSharp.CompositionHostBuilder
Loaded OmniSharp.MSBuild, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
dbug: OmniSharp.CompositionHostBuilder
Loaded OmniSharp.Roslyn, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
dbug: OmniSharp.CompositionHostBuilder
Loaded OmniSharp.Roslyn.CSharp, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
dbug: OmniSharp.CompositionHostBuilder
Loaded OmniSharp.Script, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
dbug: OmniSharp.CompositionHostBuilder
Loaded OmniSharp.Shared, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
info: OmniSharp.Stdio.Host
Starting OmniSharp on Windows 6.2.9200.0 (x64)
info: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 2 MSBuild instance(s)
1: Visual Studio Professional 2017 15.9.28307.344 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
2: StandAlone 15.0 - "C:\Users\smash.vscode\extensions\ms-vscode.csharp-1.19.0.omnisharp\1.32.18.msbuild\Current\Bin"
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
SUCCESS: Resolved to 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.Utilities.Core.dll' (name-only).
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
SUCCESS: Resolved to 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.Tasks.Core.dll' (name-only).
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
SUCCESS: Resolved to 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.dll' (name-only).
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
SUCCESS: Resolved to 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.Framework.dll' (name-only).
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: Visual Studio Professional 2017 15.9.28307.344 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
Attempting to resolve 'Microsoft.Build.Utilities.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
SUCCESS: Resolved to 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.Utilities.Core.dll' (name-only).
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
Attempting to resolve 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
SUCCESS: Resolved to 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.Framework.dll' (name-only).
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
Attempting to resolve 'Microsoft.CodeAnalysis.VisualBasic.Workspaces, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
FAILURE: Could not locate 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll'.
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
Attempting to resolve 'Microsoft.CodeAnalysis.VisualBasic.Features, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
FAILURE: Could not locate 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.CodeAnalysis.VisualBasic.Features.dll'.
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
Attempting to resolve 'SQLitePCLRaw.core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1488e028ca7ab535'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
FAILURE: Could not locate 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\SQLitePCLRaw.core.dll'.
info: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in 'c:\repos\Redacted\SharedComponents\src'.
info: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
info: OmniSharp.WorkspaceInitializer
Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
Attempting to resolve 'Microsoft.Build'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
SUCCESS: Resolved to 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.dll' (name-only).
dbug: OmniSharp.MSBuild.ProjectSystem
MSBuild environment:
Mode: VisualStudio
RunningTests: False
RunningInVisualStudio: False
MSBuildToolsDirectory32: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin
MSBuildToolsDirectory64: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\amd64
MSBuildSDKsPath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Sdks
CurrentMSBuildConfigurationFile: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe.config
CurrentMSBuildExePath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe
CurrentMSBuildToolsDirectory: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin
VisualStudioInstallRootDirectory: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional
MSBuildExtensionsPath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild

No solution files found in 'c:\repos\Redacted\SharedComponents\src'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\repos\Redacted\SharedComponents\src\SharedComponents.csproj'
info: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in 'c:\repos\Redacted\SharedComponents\src'.
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: c:\repos\Redacted\SharedComponents\src\SharedComponents.csproj
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
Attempting to resolve 'Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
SUCCESS: Resolved to 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.dll' (name-only).
info: OmniSharp.WorkspaceInitializer
Configuration finished.
info: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location 'c:\repos\Redacted\SharedComponents\src' on host 21088.
dbug: OmniSharp.Stdio.Host
************ Request ************
{
"Type": "request",
"Seq": 2,
"Command": "/projects"
}
dbug: OmniSharp.Stdio.Host
************ Request ************
{
"Type": "request",
"Seq": 1,
"Command": "/projects"
}
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
Attempting to resolve 'Microsoft.Build.resources, Version=15.1.0.0, Culture=en-US, PublicKeyToken=b03f5f7f11d50a3a'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
FAILURE: Could not locate 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.resources.dll'.
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
Attempting to resolve 'Microsoft.Build.resources, Version=15.1.0.0, Culture=en-US, PublicKeyToken=b03f5f7f11d50a3a'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
FAILURE: Could not locate 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.resources.dll'.
[warn]: OmniSharp.MSBuild.ProjectLoader
Package 'NuGet.PackageManagement 4.9.3' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
Attempting to resolve 'Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
SUCCESS: Resolved to 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.Tasks.Core.dll' (name-only).
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
Attempting to resolve 'Microsoft.Build.Tasks.Core.resources, Version=15.1.0.0, Culture=en-US, PublicKeyToken=b03f5f7f11d50a3a'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
FAILURE: Could not locate 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.Tasks.Core.resources.dll'.
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
Attempting to resolve 'Microsoft.Build.Tasks.Core.resources, Version=15.1.0.0, Culture=en-US, PublicKeyToken=b03f5f7f11d50a3a'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
FAILURE: Could not locate 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.Tasks.Core.resources.dll'.
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
Attempting to resolve 'System.Runtime.Loader, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
FAILURE: Could not locate 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\System.Runtime.Loader.dll'.
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
Attempting to resolve 'System.Runtime.Loader, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator
FAILURE: Could not locate 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\System.Runtime.Loader.dll'.
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'c:\repos\Redacted\SharedComponents\src\SharedComponents.csproj'.
c:\repos\Redacted\SharedComponents\src\SharedComponents.csproj
c:\repos\Redacted\SharedComponents\src\SharedComponents.csproj(0,0): Error: Package 'NuGet.PackageManagement 4.9.3' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.

Adding project 'c:\repos\Redacted\SharedComponents\src\SharedComponents.csproj'
dbug: OmniSharp.Stdio.Host
************ Response ************
{
"Request_seq": 2,
"Command": "/projects",
"Running": true,
"Success": true,
"Message": null,
"Body": {
"Cake": {
"Projects": []
},
"DotNet": {
"Projects": [],
"RuntimePath": null
},
"MsBuild": {
"SolutionPath": "c:\repos\Redacted\SharedComponents\src",
"Projects": []
},
"Script": {
"Projects": []
}
},
"Seq": 47,
"Type": "response"
}
dbug: OmniSharp.Stdio.Host
************ Response ************
{
"Request_seq": 1,
"Command": "/projects",
"Running": true,
"Success": true,
"Message": null,
"Body": {
"Cake": {
"Projects": []
},
"DotNet": {
"Projects": [],
"RuntimePath": null
},
"MsBuild": {
"SolutionPath": "c:\repos\Redacted\SharedComponents\src",
"Projects": []
},
"Script": {
"Projects": []
}
},
"Seq": 48,
"Type": "response"
}
dbug: OmniSharp.Stdio.Host
************ Request ************
{
"Type": "request",
"Seq": 3,
"Command": "/projects"
}
dbug: OmniSharp.Stdio.Host
************ Response ************
{
"Request_seq": 3,
"Command": "/projects",
"Running": true,
"Success": true,
"Message": null,
"Body": {
"Cake": {
"Projects": []
},
"DotNet": {
"Projects": [],
"RuntimePath": null
},
"MsBuild": {
"SolutionPath": "c:\repos\Redacted\SharedComponents\src",
"Projects": []
},
"Script": {
"Projects": []
}
},
"Seq": 70,
"Type": "response"
}

@filipw
Copy link
Contributor

filipw commented Apr 30, 2019

it could be that you are running into problem with wildcard package references / runtime versions?
try this solution #3009 (comment)

@smashedapples20
Copy link
Author

@filipw You're a wizard! That was it... I got so focused on the fact that the references I was eliminating were Azure DevOps feeds instead of using wildcards.

Thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants