I have looked over this issue. You need to do following to get what you want.
* On Your test machine open VS
* Goto: Project->Properties->Configuration Properties->C/C++->PreProcessor
* Add _TEST_MACHINE at the end in Preprocessor Definition
* Change your macro like this
#if _TEST_MACHINE
#import "C:\Path\To\3thParty\Library"
#else
#import "D:\Dev\Path\To\3thParty\Libraries"
#endif
Please do remember not to add _TEST_MACHINE on your devlopment machine's VS