Unified the use of service on win forms and command line
Build process configuration