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