cross platform dotnet generator

Cc: @bhardwajs

For reference, there was some related discussion in a prior topic: Support for `dotnet` CLI and ninja generator for C#