for (auto& assembly : assemblies.getMemberNames()) {
std::string assemblyName = assembly.substr(assembly.rfind('/') + 1);
//Skip the assembly present in the TPA list
- for (auto& tpa : tpaAssemblies) {
- if (!strcmp(replaceAll(tpa, ".ni.dll", ".dll").c_str(), assembly.c_str())) {
+ for (auto& tpaPath : tpaAssemblies) {
+ std::string tpaName = replaceAll(tpaPath.substr(tpaPath.rfind('/') + 1), ".ni.dll", ".dll");
+ if (!strcmp(tpaName.c_str(), assemblyName.c_str())) {
isExistTpaAssembly = true;
break;
}