Cloud Stack Ninja

I am trying to setup C# development in Visual Studio Code. I installed the C# support extension, downloaded the necessary assets and downloaded .NET Core SDK as well.

I opened CMD as administrator, navigated where my project folder was, and ran code .

I built my first program, a simple Hello World program, which has this code:

using System;
namespace myapp
    class Program
        static void Main(string[] args)
            Console.WriteLine("Hello World");

If I open up the terminal and write dotnet run, the program takes from 5 up to 10 seconds, just to run this simple program. I want to be able to run it using the Code Runner VSCode Extension, but when I try to run it using that, I get the following message:

Input Error: There is no script engine for file extension ".cs".

In the settings.json file, if I take a look at "code-runner.executorMap", for csharpis set to cscript.

Any workarounds?

Read more here:

Content Attribution

This content was originally published by StorMy at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: