-
Notifications
You must be signed in to change notification settings - Fork 676
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 doesn't work with shared code project (.shproj) #4633
Comments
@yvef can you please share the entire OmniSharp log from the Output pane? |
@JoeRobich sure. thanks. Starting OmniSharp server at 6/30/2021, 8:31:08 PM OmniSharp server started. Starting OmniSharp on arch 0.0 (x64) |
@yvef I pulled down the runtime repo and opened the |
Never mind my earlier question. I see now that you were opening the So shared projects are supported when you open a folder containing a .csproj that has a project reference to the .shproj. The reason for this is that shared projects are treated as a set of files to be added to C# project. The shared project itself doesn't contain a target framework or package dependencies necessary to generate a compilation. It only makes sense when included in a C# project which has framework and other dependencies. |
@JoeRobich no, I have not local changes. It's main branch. I tried open System.Private.CoreLib and whole Libraries folders. and nothing. If I open Libraries I can choose only few project using "Omnisharp Select Project" command. A most of remaining is ignored and, of course, it didn't parsed. |
@JoeRobich but what if I open whole Library folder. I have to choose a certain project but I cannot to do it. Most of them are missing, as I mentioned before. |
Ah, so the issue is that the C# extension does not show project files in the selector when solution files are discoved? |
I think yes. Should I create a new issue? |
Environment data
Version: 6.0.100-preview.4.21255.9
Runtime Environment:
OS Name: arch
OS Platform: Linux
RID: arch-x64
.NET SDKs installed:
6.0.100-preview.4.21255.9 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.0-preview.4.21253.5 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.0-preview.4.21253.7 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Btw. on windows 10 the same behavior.
Expected behavior
Work in vscode with Intellisense support.
Actual behavior
It doesn't work. Press F12 - "No definition found for ...";
Omnisharp log:
OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
No document found. File: path/to/thefile
The text was updated successfully, but these errors were encountered: