-
Notifications
You must be signed in to change notification settings - Fork 417
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
Lots of errors when opening aspnet/SignalR #795
Comments
@DustinCampbell am assuming nobody is looking into this issue. There's a fundamental problem with project references in msbuild within omnisharp. If nobody gets to this issue I'll try to take a look this weekend. I can't use VS code anymore on any project in ASP.NET because of it. |
Sorry @davidfowl. I forgot to post back here after trying to repro a few weeks ago. Interestingly, I can repro if I run Here's what I did in the Terminal:
No errors anywhere. 😞 Hovering over the methods where your screenshot shows errors or pressing F12 on them shows that they're indeed binding properly. I suspect this has to do with the fact that the SignalR is using .NET Core SDK 2.0.0-preview1-005418, which is beyond RTM. Today OmniSharp ships RTM versions of the various MSBuild SDKs and points to those at designtime. So, at designtime, an older version of, say, Microsoft.Net.Web.Sdk is being used than what |
got a fix for the unresolved references warnings. It was an issue with version ranges. SignalR's build uses 2.0.0-* throughout. |
Nah, it wasn't about SDKs. Project references were getting added twice due to some code that got lost in a refactoring a few months ago: ef4b383. I've got a fix that should make SignalR work nicely for you. |
If you don't want to wait for a C# for VS Code update (which'll be a little while yet), you can build the latest omnisharp-roslyn dev branch and set the following settings in VS Code:
Build instructions are here |
I'm running on OSX.
I didn't want to open an uber issue but it seems like there are multiple things happening here. The repro steps are to clone https://github.com/aspnet/SignalR and run build.sh. After the build finishes, open vs code at the root (
code .
).I'll try to pick it apart into specific issues but I was caught by surprise because I thought things would just work.
The text was updated successfully, but these errors were encountered: