scrpit_dir = os.path.dirname(os.path.abspath(__file__))
spec_dir = os.path.join(scrpit_dir, "csapi-tizenfx.spec")
-tree = ET.parse("../pkg/Tizen.NET/Tizen.NET.nuspec")
+nuspec_file = os.path.join(scrpit_dir, "../pkg/Tizen.NET/Tizen.NET.nuspec")
+tree = ET.parse(nuspec_file)
root = tree.getroot()
tfm_list = []
if depen_child.tag == "{http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd}dependencies":
for group in depen_child:
tfm = group.attrib["targetFramework"].lower()
- tfm = tfm.replace(".", "")
- tfm = tfm.replace("20", "2.0")
- if tfm.strip():
- tfm_list.append(tfm)
+ if tfm.startswith("tizen"):
+ tfm = tfm.replace(".", "")
+ if tfm.strip():
+ tfm_list.append(tfm)
tfm_list = list(set(tfm_list))
tfm_list.sort(reverse=True)