My development environment is a Windows Server VM running Sharepoint 2010 Enterprise. I've written code to programatically export webparts to XML, for archival or re-import elsewhere.
The issue is that on my development environment webparts consistently export to the new "v3" .webpart format. In our deployment test environment however, the SPLimitedWebPartManager.ExportWebPart method exports any and all webparts (even out of the box Sharepoint webparts) using the older v2 .dwp format. I can tell because the XML contains either the v2 or v3 xmlns namespace. For reasons that are unrelated to this question, the format matters (we need the new v3 format).
The only difference (that I can tell) between environments is my VM is running Enterprise, and the dev deployment environment is running Sharepoint Standard. As far as I can tell, this shouldn't make a difference. According to various documentation I've found, the older v2 format would be used for backward compatibility when older .Net types are used, but in this case the v2 format is used in every case.
I've even tried restoring a site backup to my VM, but still see the same behavior.
Is there any switch or anything at all that would dictate what webpart export format Sharepoint uses?