I am using C# test project .I wish to load a Xml which is available inside the project under a folder Dump . I am able to do
string path =
“C:\APP\FrameworkTest\TestProject\Dump\GetAddressById.xml”;
but i don’t want to use like this because if the drive changes,my code will fail.
in asp.net we have something like Server.MapPath() . Is there some thing like this ?
For example:
Hope this helps.