My son asked if I could teach him some programming. I studied programming in university and it was mostly C#. I briefly did that after I graduated but then went into BI career and can't remember much about C# or VS.
I have all my material from school and thought my son can start with the Hello World console application like I did. I then downloaded VS2022 and created a new project but I guess a lot has changed.
Could someone explain this to me.
Back in the day when I created new console application I got this.
using System;
using System.Collections.Generic;
using System.Text;
namespace Hello
{
class Program
{
static void Main(string[] args)
{
}
}
}
Question
Joni_78
My son asked if I could teach him some programming. I studied programming in university and it was mostly C#. I briefly did that after I graduated but then went into BI career and can't remember much about C# or VS.
I have all my material from school and thought my son can start with the Hello World console application like I did. I then downloaded VS2022 and created a new project but I guess a lot has changed.
Could someone explain this to me.
Back in the day when I created new console application I got this.
using System; using System.Collections.Generic; using System.Text; namespace Hello { class Program { static void Main(string[] args) { } } }
Now with VS2022
I get this on new project.
Console.WriteLine("Hello world!");
Why no using, namespace, class etc?
Link to comment
https://www.neowin.net/forum/topic/1425371-help-with-visual-studio-2005-2022/Share on other sites
9 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now