Alex Lonyay

Alex Lonyay

  • NA
  • 123
  • 8.8k

How can I make the path in config file relative in MSTest

May 1 2020 7:42 AM
In My App.config file - I have added the absolute path, but now I want to make the path as relative
  1. <add key="Design.Image1" value="D:\GIT-TA\src\Automation\Framework\Resources\Images\Black.jpg" />  
  2. <add key="Design.Image2" value="D:\GIT-TA\src\Automation\Framework\Resources\Images\Pattern_2.jpg" /> 
Here path from "D:\GIT-TA\src\Automation" can be anything so rather using absolute value - I want to use relative path so it can take image from "any path\Resources\Images\Pattern_2.jpg"
 
Can this be done?

Answers (1)