def getdotnetversion(self, iver):
        '''
        Given a version string such as 3.0, return a list of DotNetVersion object
        '''
        thever = None
        allProfile = []
      
        for subkeyname in DOT_NET_VERSIONS.get(iver, []):
            theVer = self._getdotnetinfo(subkeyname)
            #1.0, return as soon as find a valid installation
            if iver == "1.0":
                if theVer: 
                    allProfile.append(theVer)
                    break
            #4, return both Client and Full profiles
            elif iver == "4":
                profile = subkeyname.split("\\")[-1]
                theVer.version += ":"+ profile
          
            if theVer: allProfile.append(theVer)
              
        return allProfile
        #return DotNetVersion('v'+ iver, '0', '32bit', r'C:\dummy\path\v' + iver)

        Given a version string such as 3.0, return a list of DotNetVersion object
        
recipes/Python/578143_small_pythscript_detect_net_framwork_versions/recipe-578143.py