I have two simple, standalone, command line programs. Each is a single source file (say Program1.cs
& Program2.cs
), each containing a static void Main(..)
, and each should compile to a single, standalone binary. They're related so I want to keep in a single directory for simplicity.
With .Net pre-Core, it's easy to build with csc Program<x>.cs
& out comes the exe.
Is there a way to replicate that in .Net Core? Or does it mean 2 separate projects? So far, I can't find a way to generate 2 binaries, each with a separate entry point, in one project.
Thanks.
--
- These are simple demos. I know it's perhaps not representative of typical projects, where there would be multiple source files with a single entry point. However ability to scale down to simple cases is important too.