01-03 Setup Project (Basic Script)

1

When You open the new project the starting script.cs will look like this

Visit this link for an explanation https://learn.microsoft.com/en-us/dotnet/core/tutorials/top-level-templates

02

To fix the project template, create a new file (as seen in video above in 1). It will include the using System library, and the public class Project will have the same name as the saved file. This is where the program of the

using System;
namespace MyApp
{
    public class Project
	{
	    public Project()
	    {
            Console.WriteLine("Hello World!");
            Console.ReadLine();
            }
	}
}

Start a new file or just paste the code from here, (Be sure to change public class ) to correct file name).

03

The webpage in the link above explains how the new code format in the above step is the same as the old version seen below

using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;

namespace MyApp
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
        }
    }
}