How can I program DLL file base on UE4 Source

If I want to let my Actor source to be like DLL file. How can I do that ?
I tried to create new dll project under UE4 (unreal engine source). inside dll project I can’t include any of unreal engine source even I added VC++ Directories Setting on VS2019.

Any one had experience about this ?