76 references to FullPath
Microsoft.DotNet.SignTool (76)
src\BatchSignUtil.cs (32)
108
_signTool.RemoveStrongNameSign(fileSignInfo.
FullPath
);
121
var toRepackSet = _batchData.FilesToSign.Where(x => x.ShouldRepack)?.Select(x => x.
FullPath
)?.ToHashSet();
158
Path.GetExtension(fileInfo.
FullPath
) == ".exe").ToArray();
174
_log.LogMessage(MessageImportance.Normal, $"Extracting engine from {file.
FullPath
}");
175
if (!RunWixTool("insignia.exe", $"-ib {file.
FullPath
} -o {engineFileName}",
178
_log.LogError($"Failed to extract engine from {file.
FullPath
}");
200
_log.LogMessage(MessageImportance.Normal, $"Attaching engine {engine.Key.FileName} to {engine.Value.
FullPath
}");
205
$"-ab {engine.Key.FileName} {engine.Value.
FullPath
} -o {engine.Value.
FullPath
}", workingDirectory,
208
_log.LogError($"Failed to attach engine to {engine.Value.
FullPath
}");
225
var repackList = files.Where(w => toRepackSet.Contains(w.
FullPath
)).ToList();
247
FileInfo fileInfo = new FileInfo(file.
FullPath
);
263
toRepackSet.Remove(file.
FullPath
);
276
toRepackSet.Remove(file.
FullPath
);
294
_log.LogError($"Don't know how to repack file '{file.
FullPath
}'");
306
trackedSet.Contains(x.FileSignInfo.FileContentKey)) && !toRepackSet.Contains(x.FileSignInfo.
FullPath
)
476
foreach (var fileName in _batchData.FilesToSign.OrderBy(x => x.
FullPath
))
580
using (var stream = File.OpenRead(file.
FullPath
))
584
_log.LogError($"Assembly {file.
FullPath
} is NOT signed properly");
588
_log.LogMessage(MessageImportance.Low, $"Assembly {file.
FullPath
} is signed properly");
596
_log.LogMessage(MessageImportance.Low, $"Skipping signature verification of {file.
FullPath
} on non-Linux platform.");
598
else if (!_signTool.VerifySignedDeb(log, file.
FullPath
))
600
_log.LogError($"Deb package {file.
FullPath
} is not signed properly.");
605
if (!_signTool.VerifySignedPowerShellFile(file.
FullPath
))
607
_log.LogError($"Powershell file {file.
FullPath
} does not have a signature mark.");
615
foreach (var (relativeName, _, _) in ZipData.ReadEntries(_log, file.
FullPath
, _signTool.TempDir, _signTool.TarToolPath, _signTool.PkgToolPath, ignoreContent: true))
646
_log.LogError($"Container {file.
FullPath
} does not have signature marker.");
650
_log.LogMessage(MessageImportance.Low, $"Container {file.
FullPath
} has a signature marker.");
662
_log.LogMessage($"Skipping strong-name validation for {file.
FullPath
}.");
666
if (file.IsManaged() && !file.IsCrossgened() && !_signTool.VerifyStrongNameSign(file.
FullPath
))
668
_log.LogError($"Assembly {file.
FullPath
} is not strong-name signed correctly.");
672
_log.LogMessage(MessageImportance.Low, $"Assembly {file.
FullPath
} strong-name signature is valid.");
src\Configuration.cs (5)
223
_filesToCopy.Add(new KeyValuePair<string, string>(existingSignInfo.
FullPath
, file.FullPath));
237
_log.LogError($"Failed to build zip data for {fileSignInfo.
FullPath
}");
242
_log.LogMessage($"Trying to gather data for wix container {fileSignInfo.
FullPath
}");
249
_log.LogError($"Failed to build wix data for {fileSignInfo.
FullPath
}");
741
string archivePath = zipFileSignInfo.
FullPath
;
src\FileSignInfo.cs (2)
78
internal bool IsManaged() => ContentUtil.IsManaged(
FullPath
);
80
internal bool IsCrossgened() => ContentUtil.IsCrossgened(
FullPath
);
src\SignTool.cs (11)
70
string zipFilePath = GetZipFilePath(file.
FullPath
);
71
zipPaths.Add(file.
FullPath
, zipFilePath);
78
Arguments = $"-V -ck --sequesterRsrc \"{file.
FullPath
}\" \"{zipFilePath}\"",
86
_log.LogError($"Failed to zip file {file.
FullPath
} to {zipFilePath}");
87
throw new InvalidOperationException($"Failed to zip file {file.
FullPath
} to {zipFilePath}");
94
archive.CreateEntryFromFile(file.
FullPath
, Path.GetFileName(file.
FullPath
));
184
if (zippedPaths == null || !zippedPaths.TryGetValue(fileToSign.
FullPath
, out string filePath))
186
filePath = fileToSign.
FullPath
;
228
_log.LogMessage($"Strong-name signing '{file.
FullPath
}' locally with key '{file.SignInfo.StrongName}'.");
230
return StrongName.Sign(file.
FullPath
, file.SignInfo.StrongName, _args.SNBinaryPath, _log);
src\ZipData.cs (26)
192
using (var zipStream = File.Open(FileSignInfo.
FullPath
, FileMode.Open))
201
log.LogMessage(MessageImportance.Low, $"Didn't find signed part for nested file: {FileSignInfo.
FullPath
} -> {relativeName}");
205
using (var signedStream = File.OpenRead(signedPart.Value.FileSignInfo.
FullPath
))
208
log.LogMessage(MessageImportance.Low, $"Copying signed stream from {signedPart.Value.FileSignInfo.
FullPath
} to {FileSignInfo.
FullPath
} -> {relativeName}.");
245
log.LogMessage(MessageImportance.Low, $"Didn't find signed part for nested file: {FileSignInfo.
FullPath
} -> {relativeName}");
248
log.LogMessage(MessageImportance.Low, $"Copying signed stream from {signedPart.Value.FileSignInfo.
FullPath
} to {file}.");
249
File.Copy(signedPart.Value.FileSignInfo.
FullPath
, file, true);
254
log.LogError($"Packaging of wix file '{FileSignInfo.
FullPath
}' failed");
264
log.LogMessage($"Created wix file {outputFileName}, replacing '{FileSignInfo.
FullPath
}' with '{outputFileName}'");
265
File.Copy(outputFileName, FileSignInfo.
FullPath
, true);
334
if (!RunPkgProcess(log, srcPath: FileSignInfo.
FullPath
, dstPath: extractDir, "unpack", pkgToolPath))
346
log.LogMessage(MessageImportance.Low, $"Didn't find signed part for nested file: {FileSignInfo.
FullPath
} -> {relativePath}");
350
log.LogMessage(MessageImportance.Low, $"Copying signed stream from {signedPart.Value.FileSignInfo.
FullPath
} to {FileSignInfo.
FullPath
} -> {relativePath}.");
351
File.Copy(signedPart.Value.FileSignInfo.
FullPath
, path, overwrite: true);
354
if (!RunPkgProcess(log, srcPath: extractDir, dstPath: FileSignInfo.
FullPath
, "pack", pkgToolPath))
452
foreach (TarEntry entry in ReadTarGZipEntries(FileSignInfo.
FullPath
))
461
using FileStream signedStream = File.OpenRead(signedPart.Value.FileSignInfo.
FullPath
);
466
log.LogMessage(MessageImportance.Low, $"Copying signed stream from {signedPart.Value.FileSignInfo.
FullPath
} to {FileSignInfo.
FullPath
} -> {relativeName}.");
470
log.LogMessage(MessageImportance.Low, $"Didn't find signed part for nested file: {FileSignInfo.
FullPath
} -> {relativeName}");
478
using (FileStream outputStream = File.Open(FileSignInfo.
FullPath
, FileMode.Truncate, FileAccess.Write))
502
string dataArchive = NestedParts.Values.Single().FileSignInfo.
FullPath
;
507
controlArchive = GetUpdatedControlArchive(FileSignInfo.
FullPath
, dataArchive, tempDir);
517
OutputDebPackagePath = FileSignInfo.
FullPath
,