Intellisence problem while NET Core scrpting
See original GitHub issueFollow this instruction to run your first script. Try to include some NuGet package, for instace this one:
#r "nuget: NETMouseProjectsOrganization.ABCNET, 0.0.5"
using ABCNET.Extensions;
"Hello world!".Println();
1.Println();
Program will run normally bot Intellisence will not - it willl say that there is no ABCNET
namespace available and Println
extension method respectvely:
VS Code version: Code 1.46.1 (cd9ea6488829f560dc949a8b2fb789f3cdc05f5d, 2020-06-17T21:13:20.174Z) OS version: Windows_NT x64 10.0.18362
System Info
Item | Value |
---|---|
CPUs | Intel® Core™ i7-8850H CPU @ 2.60GHz (12 x 2592) |
GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: disabled_off protected_video_decode: unavailable_off rasterization: enabled skia_renderer: disabled_off_ok video_decode: enabled viz_display_compositor: enabled_on viz_hit_test_surface_layer: disabled_off_ok webgl: enabled webgl2: enabled |
Load (avg) | undefined |
Memory (System) | 15.89GB (10.54GB free) |
Process Argv | |
Screen Reader | no |
VM | 0% |
Extensions (13)
Extension | Author (truncated) | Version |
---|---|---|
better-comments | aar | 2.0.5 |
vscode-eslint | dba | 2.1.5 |
githistory | don | 0.6.5 |
LogFileHighlighter | emi | 2.8.0 |
vscode-firefox-debug | fir | 2.9.0 |
vscode-test-explorer | hbe | 2.19.1 |
roslynator | jos | 3.0.0 |
bash-ide-vscode | mad | 1.10.2 |
csharp | ms- | 1.22.1 |
code-settings-sync | Sha | 3.4.3 |
vscodeintellicode | Vis | 1.2.8 |
vscode-nxunit-test-adapter | wgh | 0.1.3 |
markdown-all-in-one | yzh | 3.1.0 |
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Intellisense not working for inline dependencies #230 - GitHub
The script works at runtime but in Visual Studio code I have Newtonsoft underlined in red, and no intellisense. (the same as for...
Read more >Intellisense not automatically working VSCode - Stack Overflow
NET Core 2.0 to 2.1. Strangely, at the same time, Intellisense was working fine in another C# project repo running ASP.NET Core 2.2....
Read more >IntelliSense in Visual Studio Code
This issue is caused by missing type declaration (typings) files in JavaScript. You can check if a type declaration file package is available...
Read more >JScript IntelliSense: Handling Errors - .NET Blog
I often get the question “Why isn't IntelliSense working?”. The most common cause is an error in one of the referenced scripts.
Read more >Intelisense problem - Ask - GameDev.tv Community
I have tried to follow the 'Intellisense Issues' guide as best I can, ... I open a C# script I get the error...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
you have to activate the dotnet-script compatible mode in OmniSharp as it defaults to CSI mode (no nuget support). you need to add omnisharp.json file at the root of your workspace. you can also add it globally using these instructions https://github.com/OmniSharp/omnisharp-roslyn/wiki/Configuration-Options#global-omnisharpjson
dotnet script init also generates the relevant omnisharp.json
OK let’s close this one then - thanks