C# Executable Executing directory

前端 未结 8 1994
庸人自扰
庸人自扰 2020-12-11 02:38

What is the best method of getting the path the C# executable is running from?

I need to use it for temp folders etc and currently I\'m using:

Path.G         


        
8条回答
  •  眼角桃花
    2020-12-11 03:12

    Try with Environment.CurrentDirectory This returns the folder of your currently working directory.

提交回复
热议问题