These EXE files are called self-contained EXE files, and they have a trim option, so they contain the .Net Core runtime itself and all the DLLs and such. So I though... does that mean it might even run under DOS or will it still require Windows? I googled and found I was not the only one to have thought about this, someone had already done it and succeeded. Normally these self-contained EXE files would be at least 28MB because they contain everything, and that is even if you use a trimming feature. But he manages to bring a compiled EXE down to 27kb!

I can probably not replicate that, but I think I will try just for the fun of it. Here is a link to the article:
https://www.hanselman.com/blog/net-ever ... 11-and-dos