test-export: compatible with all versions of visual studio (cherry picked from commit 9adc9f149657212f65f05750b4f94ea3b1166aec)