ā 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.
} } } 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
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
Yes but VS 2019 and 2022 has massive differences in terms of the code written
No they don't
C# is C#
I am currently using online sources for learning the language
most of them are old
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 workWell as I said, most of the tutorials online is from VS 2019
There aren't that many differences between versions
And C# is C#
and by new I mean my only code experince is some livecode
A
for
loop will be the same, no matter if it's VS 2019, 2022, VS Code, or Notepad++I'll try to change to VS2022 and see if it works
š Thanks
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.