79 references to FullPath
Microsoft.DotNet.SignTool (79)
src\BatchSignUtil.cs (31)
106
_signTool.RemoveStrongNameSign(fileSignInfo.
FullPath
);
119
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
);
289
_log.LogError($"Don't know how to repack file '{file.
FullPath
}'");
301
trackedSet.Contains(x.FileSignInfo.FileContentKey)) && !toRepackSet.Contains(x.FileSignInfo.
FullPath
)
471
foreach (var fileName in _batchData.FilesToSign.OrderBy(x => x.
FullPath
))
594
using (var stream = File.OpenRead(file.
FullPath
))
602
var status = _signTool.VerifySignedDeb(log, file.
FullPath
);
607
var status = _signTool.VerifySignedRpm(log, file.
FullPath
);
612
var status = _signTool.VerifySignedPowerShellFile(file.
FullPath
);
617
var status = _signTool.VerifySignedPkgOrAppBundle(_log, file.
FullPath
, _signTool.PkgToolPath);
622
var status = _signTool.VerifySignedNuGet(file.
FullPath
);
627
var status = _signTool.VerifySignedVSIX(file.
FullPath
);
646
_log.LogError($"{fileType} {file.
FullPath
} is not signed properly.");
650
_log.LogMessage(MessageImportance.Low, $"Signing status of {file.
FullPath
} could not be determined.");
654
_log.LogMessage(MessageImportance.Low, $"{fileType} {file.
FullPath
} is signed properly");
665
_log.LogMessage($"Skipping strong-name validation for {file.
FullPath
}.");
671
if (_signTool.VerifyStrongNameSign(file.
FullPath
) != SigningStatus.Signed)
673
_log.LogError($"Assembly {file.
FullPath
} is not strong-name signed correctly.");
677
_log.LogMessage(MessageImportance.Low, $"Assembly {file.
FullPath
} strong-name signature is valid.");
src\Configuration.cs (5)
219
_filesToCopy.Add(new KeyValuePair<string, string>(existingSignInfo.
FullPath
, file.FullPath));
227
_log.LogMessage($"Trying to gather data for wix container {fileSignInfo.
FullPath
}");
234
_log.LogError($"Failed to build wix data for {fileSignInfo.
FullPath
}");
245
_log.LogError($"Failed to build zip data for {fileSignInfo.
FullPath
}");
727
string archivePath = zipFileSignInfo.
FullPath
;
src\FileSignInfo.cs (2)
77
internal bool IsManaged() => ContentUtil.IsManaged(
FullPath
);
79
internal bool IsCrossgened() => ContentUtil.IsCrossgened(
FullPath
);
src\SignTool.cs (11)
71
string zipFilePath = GetZipFilePath(file.
FullPath
);
72
zipPaths.Add(file.
FullPath
, zipFilePath);
79
Arguments = $"-V -ck --sequesterRsrc \"{file.
FullPath
}\" \"{zipFilePath}\"",
87
_log.LogError($"Failed to zip file {file.
FullPath
} to {zipFilePath}");
88
throw new InvalidOperationException($"Failed to zip file {file.
FullPath
} to {zipFilePath}");
95
archive.CreateEntryFromFile(file.
FullPath
, Path.GetFileName(file.
FullPath
));
195
if (zippedPaths == null || !zippedPaths.TryGetValue(fileToSign.
FullPath
, out string filePath))
197
filePath = fileToSign.
FullPath
;
249
_log.LogMessage($"Strong-name signing '{file.
FullPath
}' locally with key '{file.SignInfo.StrongName}'.");
251
return StrongName.Sign(file.
FullPath
, file.SignInfo.StrongName, _args.SNBinaryPath, _log);
src\ZipData.cs (30)
221
using (var zipStream = File.Open(FileSignInfo.
FullPath
, FileMode.Open))
230
log.LogMessage(MessageImportance.Low, $"Didn't find signed part for nested file: {FileSignInfo.
FullPath
} -> {relativeName}");
234
using (var signedStream = File.OpenRead(signedPart.Value.FileSignInfo.
FullPath
))
237
log.LogMessage(MessageImportance.Low, $"Copying signed stream from {signedPart.Value.FileSignInfo.
FullPath
} to {FileSignInfo.
FullPath
} -> {relativeName}.");
274
log.LogMessage(MessageImportance.Low, $"Didn't find signed part for nested file: {FileSignInfo.
FullPath
} -> {relativeName}");
277
log.LogMessage(MessageImportance.Low, $"Copying signed stream from {signedPart.Value.FileSignInfo.
FullPath
} to {file}.");
278
File.Copy(signedPart.Value.FileSignInfo.
FullPath
, file, true);
283
log.LogError($"Packaging of wix file '{FileSignInfo.
FullPath
}' failed");
293
log.LogMessage($"Created wix file {outputFileName}, replacing '{FileSignInfo.
FullPath
}' with '{outputFileName}'");
294
File.Copy(outputFileName, FileSignInfo.
FullPath
, true);
361
if (!RunPkgProcess(srcPath: FileSignInfo.
FullPath
, dstPath: extractDir, "unpack", pkgToolPath))
373
log.LogMessage(MessageImportance.Low, $"Didn't find signed part for nested file: {FileSignInfo.
FullPath
} -> {relativePath}");
377
log.LogMessage(MessageImportance.Low, $"Copying signed stream from {signedPart.Value.FileSignInfo.
FullPath
} to {FileSignInfo.
FullPath
} -> {relativePath}.");
378
File.Copy(signedPart.Value.FileSignInfo.
FullPath
, path, overwrite: true);
381
if (!RunPkgProcess(srcPath: extractDir, dstPath: FileSignInfo.
FullPath
, "pack", pkgToolPath))
479
foreach (TarEntry entry in ReadTarGZipEntries(FileSignInfo.
FullPath
))
488
using FileStream signedStream = File.OpenRead(signedPart.Value.FileSignInfo.
FullPath
);
493
log.LogMessage(MessageImportance.Low, $"Copying signed stream from {signedPart.Value.FileSignInfo.
FullPath
} to {FileSignInfo.
FullPath
} -> {relativeName}.");
497
log.LogMessage(MessageImportance.Low, $"Didn't find signed part for nested file: {FileSignInfo.
FullPath
} -> {relativeName}");
505
using (FileStream outputStream = File.Open(FileSignInfo.
FullPath
, FileMode.Truncate, FileAccess.Write))
529
string dataArchive = NestedParts.Values.Single().FileSignInfo.
FullPath
;
534
controlArchive = GetUpdatedControlArchive(FileSignInfo.
FullPath
, dataArchive, tempDir);
544
OutputDebPackagePath = FileSignInfo.
FullPath
,
681
ExtractRpmPayloadContents(FileSignInfo.
FullPath
, layout);
686
File.Copy(signedPart.FileSignInfo.
FullPath
, Path.Combine(layout, signedPart.RelativeName), overwrite: true);
701
IReadOnlyList<RpmHeader<RpmHeaderTag>.Entry> headerEntries = GetRpmHeaderEntries(FileSignInfo.
FullPath
);
723
OutputRpmPackagePath = FileSignInfo.
FullPath
,