Is it possible to only have one file instead of a whole folder?
Instead of having a folder for each project in C#, and many files, is it possible to just have one file for each project? I am making console application (.NET Core), and it is annoying to have about 8 files when I am syncing across two computers, and it would be easier to just have a single file, per project. I am used to Python where one file is enough, and that's nice. A whole folder filled with files that are almost the same each time is just annoying to me. I am using VS Community 2019 if that matters.
Edit: I formulated myself in a very bad way, which meant I didn't get the answer I was looking for.
Solution 1:
There's absolutely nothing preventing you from having multiple classes in a single file.
namespace Hello
{
public Class A
{
}
public Class B
{
}
}