58 references to FullPath
Microsoft.DotNet.SignTool (58)
src\BatchSignUtil.cs (29)
105
_signTool.RemovePublicSign(fileSignInfo.
FullPath
);
118
var toRepackSet = _batchData.FilesToSign.Where(x => x.ShouldRepack)?.Select(x => x.
FullPath
)?.ToHashSet();
154
Path.GetExtension(fileInfo.
FullPath
) == ".exe").ToArray();
170
_log.LogMessage(MessageImportance.Normal, $"Extracting engine from {file.
FullPath
}");
171
if (!RunWixTool("insignia.exe", $"-ib {file.
FullPath
} -o {engineFileName}",
174
_log.LogError($"Failed to extract engine from {file.
FullPath
}");
196
_log.LogMessage(MessageImportance.Normal, $"Attaching engine {engine.Key.FileName} to {engine.Value.
FullPath
}");
201
$"-ab {engine.Key.FileName} {engine.Value.
FullPath
} -o {engine.Value.
FullPath
}", workingDirectory,
204
_log.LogError($"Failed to attach engine to {engine.Value.
FullPath
}");
221
var repackList = files.Where(w => toRepackSet.Contains(w.
FullPath
)).ToList();
243
FileInfo fileInfo = new FileInfo(file.
FullPath
);
259
toRepackSet.Remove(file.
FullPath
);
272
toRepackSet.Remove(file.
FullPath
);
290
_log.LogError($"Don't know how to repack file '{file.
FullPath
}'");
302
trackedSet.Contains(x.FileSignInfo.FileContentKey)) && !toRepackSet.Contains(x.FileSignInfo.
FullPath
)
472
foreach (var fileName in _batchData.FilesToSign.OrderBy(x => x.
FullPath
))
541
using (var stream = File.OpenRead(file.
FullPath
))
545
_log.LogError($"Assembly {file.
FullPath
} is NOT signed properly");
549
_log.LogMessage(MessageImportance.Low, $"Assembly {file.
FullPath
} is signed properly");
555
if (!_signTool.VerifySignedPowerShellFile(file.
FullPath
))
557
_log.LogError($"Powershell file {file.
FullPath
} does not have a signature mark.");
565
foreach (var (relativeName, _, _) in ZipData.ReadEntries(file.
FullPath
, _signTool.TempDir, _signTool.TarToolPath, ignoreContent: true))
592
_log.LogError($"Container {file.
FullPath
} does not have signature marker.");
596
_log.LogMessage(MessageImportance.Low, $"Container {file.
FullPath
} has a signature marker.");
608
_log.LogMessage($"Skipping strong-name validation for {file.
FullPath
}.");
612
if (file.IsManaged() && !file.IsCrossgened() && !_signTool.VerifyStrongNameSign(file.
FullPath
))
614
_log.LogError($"Assembly {file.
FullPath
} is not strong-name signed correctly.");
618
_log.LogMessage(MessageImportance.Low, $"Assembly {file.
FullPath
} strong-name signature is valid.");
src\Configuration.cs (3)
215
_filesToCopy.Add(new KeyValuePair<string, string>(existingSignInfo.
FullPath
, file.FullPath));
230
_log.LogMessage($"Trying to gather data for wix container {fileSignInfo.
FullPath
}");
663
string archivePath = zipFileSignInfo.
FullPath
;
src\FileSignInfo.cs (2)
62
internal bool IsManaged() => ContentUtil.IsManaged(
FullPath
);
64
internal bool IsCrossgened() => ContentUtil.IsCrossgened(
FullPath
);
src\SignTool.cs (7)
56
_log.LogError($"Found file that need to be strong-name sign ({file.
FullPath
}) but path to 'sn.exe' wasn't specified.");
60
_log.LogMessage($"Strong-name signing {file.
FullPath
} locally.");
66
Arguments = $@"-R ""{file.
FullPath
}"" ""{file.SignInfo.StrongName}""",
75
_log.LogError($"Failed to strong-name sign file {file.
FullPath
}");
125
File.Copy(item.
FullPath
, Path.Combine(osxFilesZippingDir, item.FileName), overwrite: true);
134
File.Copy(Path.Combine(osxFilesZippingDir, item.FileName), item.
FullPath
, overwrite: true);
163
AppendLine(builder, depth: 2, text: $@"<FilesToSign Include=""{Uri.EscapeDataString(fileToSign.
FullPath
)}"">");
src\ZipData.cs (17)
165
using (var zipStream = File.Open(FileSignInfo.
FullPath
, FileMode.Open))
174
log.LogMessage(MessageImportance.Low, $"Didn't find signed part for nested file: {FileSignInfo.
FullPath
} -> {relativeName}");
178
using (var signedStream = File.OpenRead(signedPart.Value.FileSignInfo.
FullPath
))
181
log.LogMessage(MessageImportance.Low, $"Copying signed stream from {signedPart.Value.FileSignInfo.
FullPath
} to {FileSignInfo.
FullPath
} -> {relativeName}.");
218
log.LogMessage(MessageImportance.Low, $"Didn't find signed part for nested file: {FileSignInfo.
FullPath
} -> {relativeName}");
221
log.LogMessage(MessageImportance.Low, $"Copying signed stream from {signedPart.Value.FileSignInfo.
FullPath
} to {file}.");
222
File.Copy(signedPart.Value.FileSignInfo.
FullPath
, file, true);
227
log.LogError($"Packaging of wix file '{FileSignInfo.
FullPath
}' failed");
237
log.LogMessage($"Created wix file {outputFileName}, replacing '{FileSignInfo.
FullPath
}' with '{outputFileName}'");
238
File.Copy(outputFileName, FileSignInfo.
FullPath
, true);
335
foreach (var entry in ReadTarGZipEntries(FileSignInfo.
FullPath
))
343
log.LogMessage(MessageImportance.Low, $"Didn't find signed part for nested file: {FileSignInfo.
FullPath
} -> {relativeName}");
347
using var signedStream = File.OpenRead(signedPart.Value.FileSignInfo.
FullPath
);
348
log.LogMessage(MessageImportance.Low, $"Copying signed stream from {signedPart.Value.FileSignInfo.
FullPath
} to {FileSignInfo.
FullPath
} -> {relativeName}.");
361
using var outputFile = File.Open(FileSignInfo.
FullPath
, FileMode.Truncate, FileAccess.Write);