Hi,
If we create WIndows (.net5/6) or crossplatform project, we can choose include sources or not in the package when publishing, as the following. (In these compatibility, process is compiled as dll) It might mitigate risk of expose source code.

Regards,