CSProj Error : ASP.NET Core
See original GitHub issueIssue Description
Hello, I got error for not having sln on the project, does this extension doesn’t support .csproj file and ASP.NET?
[Error - 15:05:51] Starting client failed
Message: Internal Error - System.ArgumentException: OmniSharp only supports being launched with a directory path or a path to a solution (.sln) file.
Parameter name: path
at OmniSharp.Services.OmniSharpEnvironment..ctor(String path, Int32 hostPid, LogLevel logLevel, String[] additionalArguments) in D:\a\1\s\src\OmniSharp.Host\Services\OmniSharpEnvironment.cs:line 38
at OmniSharp.LanguageServerProtocol.LanguageServerHost.CreateCompositionHost(InitializeParams initializeParams) in D:\a\1\s\src\OmniSharp.LanguageServerProtocol\LanguageServerHost.cs:line 84
at OmniSharp.LanguageServerProtocol.LanguageServerHost.Initialize(ILanguageServer server, InitializeParams initializeParams) in D:\a\1\s\src\OmniSharp.LanguageServerProtocol\LanguageServerHost.cs:line 157
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at System.Threading.Tasks.Task.WhenAll(IEnumerable`1 tasks)
at OmniSharp.Extensions.LanguageServer.Server.LanguageServer.<MediatR-IRequestHandler<OmniSharp-Extensions-LanguageServer-Protocol-Models-InitializeParams\,OmniSharp-Extensions-LanguageServer-Protocol-Models-InitializeResult>-Handle>d__55.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at OmniSharp.Extensions.LanguageServer.Server.Pipelines.ResolveCommandPipeline`2.<Handle>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MediatR.Pipeline.RequestPostProcessorBehavior`2.<Handle>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MediatR.Pipeline.RequestPreProcessorBehavior`2.<Handle>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at OmniSharp.Extensions.JsonRpc.RequestRouterBase`1.<RouteRequest>d__6.MoveNext()
Code: -32602
Thank you
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
csproj error · Issue #6445 · dotnet/core - GitHub
Problem encountered on https://dotnet.microsoft.com/learn/aspnet/hello-world-tutorial/modify. Operating System: windows.
Read more >How to fix build error on ASP.NET Core + ServiceStack?
ServiceInterface\Pizza.Service Interface.csproj (in 2.71 sec). Restored C:\Users\noliveros\Desktop\Pizza\Pizza\Pizza.csproj (in 2.71 sec).
Read more >NET Core project using .csproj fails using VS2017 Host
I am trying to use the VS2017 Host to build a .NET core 1.1 project that uses the new .csproj file. I created...
Read more >Troubleshooting .NET Framework Targeting Errors - MSBuild
To resolve the error, make sure that your application targets a .NET version that's compatible with the version that's targeted by the projects...
Read more >Deploying an ASP.NET core application with Elastic Beanstalk
NET Core or MSBuild applications on a single server. To deploy a .NET Core application to a Windows Server environment, you add a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
As far as I’m concerned this was fixed in the last commit.
At least in Manjaro (linux). Did not test in Windows.
will be fixed in 0.27