'Returns the extension for the target, with no leading dot.
Uses \'product_extension\' if specified, otherwise uses MSVS defaults based on
the target type.'

def GetExtension(self):

    ext = self.spec.get('product_extension', None)
    if ext:
        return ext
    return gyp.MSVSUtil.TARGET_TYPE_EXT.get(self.spec['type'], '')
