Closed Shadowblitz16 closed 1 year ago
bflat is just a compiler, not a build system.
sh/bat scripts is the low tech approach. You can use Makefiles if you want something more higher tech. You can even drive it from MSBuild if you want - bflat itself is built with MSBuild+bflat combination:
It collects all the Compile
items (those are the source C# files), then collects all the RuntimeCopyLocalItems
(those are typically NuGets) and runs bflat (here it uses RunCommand
because this is the project that builds the first bflat hosted on top of dotnet first, and then rebuilds it ).
Defining the build system is out of scope of a compiler.
We need some sort of project and solution structure whether that be csproj files and sln files or just json or toml. Part of what makes C# so great is it's build system, it's easy. Calling bflat compiler or making sh/bat script really isn't going to do it.