-1

I've just installed Visual Studio community edition from https://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx

But it seems I cannot get hello world to run.

I create a new "Console Application" and Module1.vb is created.

I then created a .cs file and add following code :

using System;

    // Hello1.cs
    public class Hello1
    {
        public static void Main()
        {
            System.Console.WriteLine("Hello, World!");
        }
    }

But how do I run this code ?

When I attempt "Run to Cursor" gives error "Cannot run to specified location"

blue-sky
  • 51,962
  • 152
  • 427
  • 752

1 Answers1

0

Make a C# project instead of a Visual Basic one. You should have a Program.cs file generated that you will then be able to modify and add to.

Jashaszun
  • 9,207
  • 3
  • 29
  • 57