I have a Windows form application with database in the folder of the project itself (.mdf and .ldf files). I have my connection strings in the app.config file. I want to use the relative path in app.config file so that even if I move the folder to some other drive or pc, it should work. Please help.
Please understand that I want relative path to the database file in app.config file and not in the .cs files.
Just using
"directory/file"will work.