nuget_restoration = true;
break;
}
- if (!copyFile(concatPath(binNiPath, niFile), concatPath(tac_version_dir, niFile))) {
+ if (exist(binNiPath) && !copyFile(concatPath(binNiPath, niFile), concatPath(tac_version_dir, niFile))) {
_ERR("Failed to copy of %s", niFile.c_str());
}
}
nuget_restoration = true;
break;
}
- if (exist(concatPath(tac_version_dir, niFile))) {
+ if (exist(concatPath(tac_version_dir, niFile)) && exist(binNiPath)) {
bf::create_symlink(concatPath(tac_version_dir, niFile), concatPath(tacDir, niFile), error);
if (error) {
_ERR("Failed to create symlink %s file", concatPath(tacDir, niFile).c_str());
}
std::string binPath = concatPath(rootPath, "bin");
+ if (exist(concatPath(binPath, PRE_COMPILED_PACKAGE_FILE))) {
+ _INFO("The %s is a Pre-Compiled package. So, skip the TAC", pkgId.c_str());
+ return 0;
+ }
+
std::string metaValue = getMetadataValue(pkgId, TAC_METADATA_KEY);
if (!tacForce) {
if (metaValue.empty()) {
}
std::string binPath = concatPath(rootPath, "bin");
+ if (exist(concatPath(binPath, PRE_COMPILED_PACKAGE_FILE))) {
+ _INFO("The %s is a Pre-Compiled package. So, skip the TAC", pkgId.c_str());
+ state = TAC_STATE_REMOVED;
+ }
+
if (state == TAC_STATE_REMOVED) {
_INFO("Skipped to parse of deps.json");
} else { //TAC_STATE_UPGRADE