You misunderstood the concept of a dll. It is a binaries which provides some functionality. For that you write code which gets in the dll and is executed by dll loading app.
Read here some Microsoft
documentation about dll.
If you want to batch build a dll project you take a dive into the platform tools of Microsoft.