C# scripting in VSCode

  • Thread starter Thread starter Michael J Brooks
  • Start date Start date
M

Michael J Brooks

Guest
I'm posting this here because I can't find a forum for VSCode and I see other Qs re VSCode in here (although that seems utterly bizarre to me - Visual Studio and VSCode are completely unrelated IDEs as far as I can tell - I suspect that VSCode is a JavaScript/TypeScript app).

I just watched Filip W's talk way back at NDC Sydney 2017 on the CSI that ships with Roslyn. His demonstrations were all in VSCode so I decided to try likewise. I installed the latest VSCode and then installed the Microsoft C# extension, which to my understanding comes with both omnisharp and CSI.

I created and saved a .csx Hello World file and hit F5 expecting to see "Hello World" appear in the output window. Instead VSCode opened the file settings.json. I have Googled this file and have actually found precious little about it. Yes I quickly found a list of the settings that one can set in it, but nothing about what it needs as a prerequisite to running CSX files in the CSI.

Also, Intellisense isn't working although syntax highlighting is - mentioning that in case it provides any clues.

[EDIT]

I left out a step. When I hit F5 it first asked me to select an environment, so I clicked ".Net Core" as seeming the most appropriate. It was then that it opened the settings.json file.

[END EDIT]

Anyone able to either throw any light on this or better still point me in the direction of some decent documentation that actually explains what is going on here?

Regards,

Michael

Continue reading...
 
Back
Top