Hi, 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 it. Say if someone else downloads it from source control to a different location.
To explain this further I want the file to be found if I say moved the 'RestServicePublishing solution to a new folder say "C:\My Projects 2".
Can someone tell me if it is possible?
Thanks