Skip project and reference type, allow only package(nuget) type
authorj-h.choi <j-h.choi@samsung.com>
Thu, 16 Jan 2025 02:02:40 +0000 (11:02 +0900)
committer조웅석/MDE Lab(SR)/삼성전자 <ws77.cho@samsung.com>
Tue, 21 Jan 2025 00:43:03 +0000 (09:43 +0900)
Change-Id: I7cae05c5c2500ed46312c6c1167e26a24b3cd5aa

NativeLauncher/tool/tac_common.cc

index 55489893f2950368c408d076d4a524c6a36810a0..8b6df6fcb07ed88ebf48c9421efbebf0ee03390f 100644 (file)
@@ -412,7 +412,14 @@ std::vector<std::string> depsJsonParser(const std::string& rootPath)
 
                        const Json::Value runtimeTargetName = root["runtimeTarget"]["name"];
                        const Json::Value nugetPackages = root["targets"][runtimeTargetName.asString().c_str()];
+                       const Json::Value libraries = root["libraries"];
                        for (const auto& nuget : nugetPackages.getMemberNames()) {
+                               const Json::Value type = libraries[nuget.c_str()]["type"];
+                               //Skip project and reference type, allow only package(nuget) type.
+                               if (type == Json::nullValue || strcmp(type.asString().c_str(), "package")) {
+                                       continue;
+                               }
+
                                //Skip the nuget package related to Tizen
                                if (strstr(nuget.c_str(), TIZEN_DOTNET_NUGET) != NULL ||
                                        strstr(nuget.c_str(), TIZEN_DOTNET_SDK_NUGET) != NULL) {