The afterplatform specification was for OSX.  Replaced it with a windows appropirate call