-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
C# support not working after C# extension installed #4467
Comments
Did you install the C# extension? https://code.visualstudio.com/Docs/languages/csharp#_installing-c35-support |
@Leocrespo and was vscode restarted after it was installed? |
Yes of course. Have you tried downloading the file and opening it, I'm sure there won't be any intellisense. |
@Leocrespo this might resolve your issue http://stackoverflow.com/a/29979730/1156119 |
Visual Studio can generate sln files as you mention, VSCode cannot. VSCode typically relies on external tools or extensions for that kind of project scaffolding. As for the So once the .NET Core is installed, you should be able to run this to generate a project.json:
And then this to run your application:
When coming back to VSCode I ran into this OmniSharp issue related to VSCode not being able to find the globally installed dnx runtime #126 (comment) Not sure why open folder is not there, it always has been for me (I don't use OSX though). You can always run the command from the command palette:
|
@Leocrespo just want to point out that the example you show here would never work as your trying to write the script in the c# class root scope. Try this example project in vscode https://github.com/dotnet/core/tree/master/samples/helloworld run i'm running vscode 0.10.11 |
@Leocrespo There is a Omnisharp log file (Cmd+L,L) Please paste its contents here. |
This issue was moved to dotnet/vscode-csharp#114 |
There's no need to send logs or try any other steps, this problem takes 15 seconds to reproduce. |
as outlined by @pflannery here, what you trying to do isn't valid C# so you should not expect IntelliSense |
I can't Install C#...with ext install C# . nothing happened. |
@yankun007 I believe it's quite large so it sometimes takes 30-60 seconds to download. Are you sure you waited long enough? |
I had this problem. I took the following steps and it started working again.
it started downloading Omnisharp and added some files to my project. I think its unfair that this was closed, however, it looks like some kind of setup problem. |
Steps to Reproduce:
If it doesn't have intellisense, it's not an editor. Might as well use textedit.
The text was updated successfully, but these errors were encountered: