According to the MSDN docs, to get the full file path of a file use
var fileName = Path.GetFullPath("KeywordsAndPhrases.txt");
Which I would assume delivers the full path of that file for the project it is in.
'K:\HeadlineAutoTrader\Autotrader.Infrastructure.HeadlineFeeds\Data\KeywordsAndPhrases.txt'
Which it doesn't, it returns;
'K:\HeadlineAutoTrader\AutotraderTests\bin\Debug\Data\KeywordsAndPhrases.txt'
which somewhat makes sense as the code I'm testing is being run in the test project.
So the question is how does one get the full filepath of a text file in a folder in another class library within the same solution?
This is a WPF based project, obviously it would be easier in a web app as Server.MapPath works great