%define DOTNET_NUGET_SOURCE /nuget
%define TIZEN_NET_RUNTIME_IDENTIFIERS 4.0.0:5.0.0:5.5.0:6.0.0:6.5.0
-%define TIZEN_NET_TARGET_FRAMEWORK_MONIKERS tizen90:tizen80:tizen70:tizen60:tizen50:tizen40
+%define TIZEN_NET_TARGET_FRAMEWORK_MONIKERS tizen10.0:tizen90:tizen80:tizen70:tizen60:tizen50:tizen40
%define UPGRADE_SCRIPT_PATH /usr/share/upgrade/scripts
tree = ET.parse(nuspec_file)
root = tree.getroot()
-tfm_list = []
+tfm_list1 = []
+tfm_list2 = []
for meta_child in root.iter():
if meta_child.tag == "{http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd}metadata":
for depen_child in meta_child:
for group in depen_child:
tfm = group.attrib["targetFramework"].lower()
if tfm.startswith("tizen"):
- tfm = tfm.replace(".", "")
- if tfm.strip():
- tfm_list.append(tfm)
+ if len(tfm) == 8:
+ tfm_list1.append(tfm.replace(".", "").strip())
+ else:
+ tfm_list2.append(tfm.strip())
-tfm_list = list(set(tfm_list))
-tfm_list.sort(reverse=True)
+tfm_list1 = list(set(tfm_list1))
+tfm_list1.sort(reverse=True)
+tfm_list2 = list(set(tfm_list2))
+tfm_list2.sort(reverse=True)
+tfm_list = tfm_list2 + tfm_list1
f = open(spec_dir,'r')
origin_data = f.read()