首页 > 技术文章 > C#编写的服务程序启动服务时报错误1053

chen-lhx 2017-09-04 17:31 原文

Application.StartupPath

已知解决方案一:

       读写文件路径的问题 用 $"{Application.StartupPath}\\config.txt"

 

推荐阅读