I have two programs, q1.cs and q2.cs. A class is defined inside both of them, and the main method is also there. And when I do dotnet run, I get the error:
Program has more than one entry point defined
In comparison to Java or using Intellij. I could have multiple files having the main method
and could right-click on a file and run it.
Is there something similar available for C# in visual studio code
or any easy alternatives. It seems weird not having this simple functionality.
Does that mean I will have to create a new project every time I want to run a simple program?
