C
C#ā€¢2y 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ā€¢2y 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ā€¢2y ago
Yes but VS 2019 and 2022 has massive differences in terms of the code written
Angius
Angiusā€¢2y ago
No they don't C# is C#
anka_a
anka_aOPā€¢2y ago
I am currently using online sources for learning the language most of them are old
Angius
Angiusā€¢2y 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ā€¢2y ago
Well as I said, most of the tutorials online is from VS 2019
Angius
Angiusā€¢2y ago
There aren't that many differences between versions And C# is C#
anka_a
anka_aOPā€¢2y ago
and by new I mean my only code experince is some livecode
Angius
Angiusā€¢2y ago
A for loop will be the same, no matter if it's VS 2019, 2022, VS Code, or Notepad++
anka_a
anka_aOPā€¢2y ago
I'll try to change to VS2022 and see if it works šŸ‘ Thanks
Accord
Accordā€¢2y 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.
Want results from more Discord servers?
Add your server