C
C#•3y ago
anka_a

ā” VS 2019 Basic Start Error

When I try to use even a basic code like; using System; namespace HelloWorld { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!");
} } } it launches the cmd prompt inside VS and leaves me with the message, (1) I am quite new to c# and I cannot proceed due to this.
11 Replies
Angius
Angius•3y ago
Odd My intuition tells me it might be something with .NET Framework... what version are you using? Another thing would be maybe just installing VS 2022 instead
anka_a
anka_aOP•3y ago
Yes but VS 2019 and 2022 has massive differences in terms of the code written
Angius
Angius•3y ago
No they don't C# is C#
anka_a
anka_aOP•3y ago
I am currently using online sources for learning the language most of them are old
Angius
Angius•3y ago
Or do you mean the lack of Program and Main? If so, you can just add them New versions of C# let you get rid of the useless boilerplate like that But it will still work
anka_a
anka_aOP•3y ago
Well as I said, most of the tutorials online is from VS 2019
Angius
Angius•3y ago
There aren't that many differences between versions And C# is C#
anka_a
anka_aOP•3y ago
and by new I mean my only code experince is some livecode
Angius
Angius•3y ago
A for loop will be the same, no matter if it's VS 2019, 2022, VS Code, or Notepad++
anka_a
anka_aOP•3y ago
I'll try to change to VS2022 and see if it works šŸ‘ Thanks
Accord
Accord•3y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?