-
Notifications
You must be signed in to change notification settings - Fork 41
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
Cant seem to understand .sln with multiple .csproj #62
Comments
I'm having this issue too. When I'm in Project A and I try to go to definition for a symbol defined in Project B in the same solution, it tries to find the symbol in the corresponding assembly for Project B within Project A (csharp:metadata/projects/ProjectA/assemblies/ProjectB/symbols/..."). Makes sense but I would prefer to have some way to set it up so that it'd go to the definition in the source for Project B in the solution. |
Hey, Could you provide a file tree of your solution (.sln + .csprojs is enough)? Ideally csharp-ls would pick up a .sln file and would load everything in one go (and faster at that) -- so no metadata refs should be emitted for local files. |
the file tree looks something like this
|
could you provide log from the server? usually it complains if it cannot find sln or something is not ok. if there is a single sln and all csprojs are there in this sln then thing should just work... |
I think csharp-language-server is trying to use dotnet 6 when the project is dotnet 7? The log does say that it picked up the When I run
|
Facing the same issue. I am getting the following error: Issue with the NeoVim LSP? I did try it with Coc and it works perfectly fine there. |
I'm having the same issue. The file tree looks like this:
Here's some logs when trying to go to a func definition in proj1.csproj from testproj1.csproj:
I'm using dotnet 7. |
Hi there, I'm also using Updating the
After doing that, For more info check out the issue I opened here: neovim/nvim-lspconfig#2612 |
I use coc instead of nvim-lsp. I tried similar approach to update the root pattern of the project by doing
But the error still persists :( |
I have a .sln that consists multiple .csproj
But whenever i load a single .cs file, it attempts to find the .csproj but won't understand other connected .csproj within the solution. How do make it work?
The text was updated successfully, but these errors were encountered: