on-internet
← Community

How to set path in config file

Stack Overflow ·

I have a test which runs a script. It gets the path from the app.config file: <scriptsSectionGroup> <scriptsCollection> <scripts> <add name="TestScript" path="C:\My Projects\RestServicePublishing\UtilityFixture\testScript.bat"/> </scripts> </scriptsCollection> </scriptsSectionGroup> 'testScript.bat' is located in the UtilityFixture project. It is not in a subfolder. UtilityFixture testScript.bat However I don't want to specify the full path as I have here. I want to make it so that it will find 'testScript.bat' in the project 'UtilityFixture' regardless of what directory the project is sitting

Comments

Sign in or sign up to comment and upvote.

No comments yet.