Can I use MSBuild variables so that they are resolved in my code? I am thinking of a piece of code that requires the $(ProjectDir), because it will never be moved (it is a unit test project).
An example:
public class MyTestDataPath
{
public void GetTestData()
{
return SOME_COMPILE_TIME_PROJECT_DIR_MACRO + "\\test-data"; // Should resolve via $(ProjectDir) during compile time.
}
}