C
Join ServerC#
help
❔ VS 2019 Basic Start Error
AAnka2/1/2023
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.
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.

AAngius2/1/2023
Odd
AAngius2/1/2023
My intuition tells me it might be something with .NET Framework... what version are you using?
AAngius2/1/2023
Another thing would be maybe just installing VS 2022 instead
AAnka2/1/2023
Yes but VS 2019 and 2022 has massive differences in terms of the code written
AAngius2/1/2023
No they don't
AAngius2/1/2023
C# is C#
AAnka2/1/2023
I am currently using online sources for learning the language
AAnka2/1/2023
most of them are old
AAngius2/1/2023
Or do you mean the lack of
Program
and Main
? If so, you can just add themAAngius2/1/2023
New versions of C# let you get rid of the useless boilerplate like that
AAngius2/1/2023
But it will still work
AAnka2/1/2023
Well as I said, most of the tutorials online is from VS 2019
AAngius2/1/2023
There aren't that many differences between versions
AAngius2/1/2023
And C# is C#
AAnka2/1/2023
and by new I mean my only code experince is some livecode
AAngius2/1/2023
A
for
loop will be the same, no matter if it's VS 2019, 2022, VS Code, or Notepad++AAnka2/1/2023
I'll try to change to VS2022 and see if it works
AAnka2/1/2023
👍 Thanks
AAccord2/2/2023
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.