Which is an appropriate location to create a Folder in c# console application for reading and writing to files?

67 Views Asked by At

I'm working on a c# console application which is going to download data into files (say under 'Files' folder) and then later read those files. Common option is to read from AppDomain.CurrentDomain.BaseDirectory. However, depending upon whether project is build in Debug or Release mode, directory would change. So what is it is advisable to create a 'Files' folder like ~\bin\Debug\Files and while deploying to server, as ~\bin\Release\Files?

0

There are 0 best solutions below