Skip to content
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

VSCode /w .NET Core IntelliSense is not working #375

Closed
EricDunaway opened this issue Jan 6, 2016 · 6 comments
Closed

VSCode /w .NET Core IntelliSense is not working #375

EricDunaway opened this issue Jan 6, 2016 · 6 comments
Labels

Comments

@EricDunaway
Copy link

omnisharp in VSCode is not finding the correct directory for .Net Core which puts everything in \.dnx\packages\

I installed .NetCore for Windows from http://dotnet.github.io/getting-started/
(https://dotnetcli.blob.core.windows.net/dotnet/dev/Installers/Latest/dotnet-win-x64.latest.msi)

ran the following commands

dotnet new
dotnet restore

Opened the folder in VS Code and got the following error.

Some projects have trouble loading. Please review the output for more details.

Output:

INFO] Starting OmniSharp at 'c:\Users\USER\Projects'...
[INFO] Started OmniSharp from 'c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\jrieken.vscode-omnisharp\bin\omnisharp.cmd' with process id 6480...
[INFORMATION:OmniSharp.Startup] Omnisharp server running using stdio at location 'c:\Users\USER\Projects' on host 1708.
[ERROR:OmniSharp.Dnx.DnxPaths] The specified runtime path 'default' does not exist. Searched locations C:\Users\USER\.dnx\runtimes\dnx-clr-win-x86.default
C:\Users\USER\.dnx\runtimes\kre-clr-win-x86.default
C:\Users\USER\.dnx\packages\KRE-CLR-x86.default
C:\Users\USER\.k\runtimes\dnx-clr-win-x86.default
C:\Users\USER\.k\runtimes\kre-clr-win-x86.default
C:\Users\USER\.k\packages\KRE-CLR-x86.default
C:\Users\USER\.kre\runtimes\dnx-clr-win-x86.default
C:\Users\USER\.kre\runtimes\kre-clr-win-x86.default
C:\Users\USER\.kre\packages\KRE-CLR-x86.default.
Visit https://github.com/aspnet/Home for an installation guide.
[INFORMATION:OmniSharp.Dnx.DnxProjectSystem] Scanning 'c:\Users\USER\Projects' for DNX projects
[INFORMATION:OmniSharp.Dnx.DnxProjectSystem] Found project 'c:\Users\USER\Projects\project.json'.
[INFORMATION:OmniSharp.Dnx.DnxProjectSystem] No default runtime found
[INFORMATION:OmniSharp.ScriptCs.ScriptCsProjectSystem] Could not find any CSX files
[INFORMATION:OmniSharp.Startup] Solution has finished loading
The specified runtime path 'default' does not exist. Searched locations C:\Users\USER\.dnx\runtimes\dnx-clr-win-x86.default
C:\Users\USER\.dnx\runtimes\kre-clr-win-x86.default
C:\Users\USER\.dnx\packages\KRE-CLR-x86.default
C:\Users\USER\.k\runtimes\dnx-clr-win-x86.default
C:\Users\USER\.k\runtimes\kre-clr-win-x86.default
C:\Users\USER\.k\packages\KRE-CLR-x86.default
C:\Users\USER\.kre\runtimes\dnx-clr-win-x86.default
C:\Users\USER\.kre\runtimes\kre-clr-win-x86.default
C:\Users\USER\.kre\packages\KRE-CLR-x86.default.
Visit https://github.com/aspnet/Home for an installation guide.

[INFORMATION:OmniSharp.ScriptCs.ScriptCsProjectSystem] Detecting CSX files in 'c:\Users\USER\Projects'.
[INFORMATION:OmniSharp.MSBuild.MSBuildProjectSystem] No solution files found in 'c:\Users\USER\Projects'
@david-driscoll
Copy link
Member

Support for the latest dotnet-cli is coming soon, in some cases it might not work in other cases it might.

@nathanielcook
Copy link

@david-driscoll if I'm not mistaken, this doesn't have to do with the dotnet-cli. Is this not another manifestation of this issue: dotnet/vscode-csharp#12 If so, then there is a pull request out there for that: #397

I for example am having this problem with VSCode at the moment and I haven't upgraded to the dotnet cli yet.

@nathanielcook
Copy link

Might also be a duplicate of this issue: #345

@troydai
Copy link
Contributor

troydai commented Mar 17, 2016

The dotnet-cli support is ready on dev branch. Please try out v1.9-alpha3 release, and VS Code instruction.

@jamespack
Copy link

@troydai That worked for me! Thanks!

@developerTN
Copy link

Hi,
Could you point to me how to fix the problem using the release ? I just found on the downloaded release a bunch of dlls, do I have to paste them somewhere ?

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants