61 references to FullPath
Microsoft.DotNet.SignTool (61)
src\BatchSignUtil.cs (32)
106
_signTool.RemovePublicSign(fileSignInfo.
FullPath
);
119
var toRepackSet = _batchData.FilesToSign.Where(x => x.ShouldRepack)?.Select(x => x.
FullPath
)?.ToHashSet();
155
Path.GetExtension(fileInfo.
FullPath
) == ".exe").ToArray();
171
_log.LogMessage(MessageImportance.Normal, $"Extracting engine from {file.
FullPath
}");
172
if (!RunWixTool("insignia.exe", $"-ib {file.
FullPath
} -o {engineFileName}",
175
_log.LogError($"Failed to extract engine from {file.
FullPath
}");
197
_log.LogMessage(MessageImportance.Normal, $"Attaching engine {engine.Key.FileName} to {engine.Value.
FullPath
}");
202
$"-ab {engine.Key.FileName} {engine.Value.
FullPath
} -o {engine.Value.
FullPath
}", workingDirectory,
205
_log.LogError($"Failed to attach engine to {engine.Value.
FullPath
}");
222
var repackList = files.Where(w => toRepackSet.Contains(w.
FullPath
)).ToList();
244
FileInfo fileInfo = new FileInfo(file.
FullPath
);
260
toRepackSet.Remove(file.
FullPath
);
273
toRepackSet.Remove(file.
FullPath
);
291
_log.LogError($"Don't know how to repack file '{file.
FullPath
}'");
303
trackedSet.Contains(x.FileSignInfo.FileContentKey)) && !toRepackSet.Contains(x.FileSignInfo.
FullPath
)
473
foreach (var fileName in _batchData.FilesToSign.OrderBy(x => x.
FullPath
))
553
using (var stream = File.OpenRead(file.
FullPath
))
557
_log.LogError($"Assembly {file.
FullPath
} is NOT signed properly");
561
_log.LogMessage(MessageImportance.Low, $"Assembly {file.
FullPath
} is signed properly");
569
_log.LogMessage(MessageImportance.Low, $"Skipping signature verification of {file.
FullPath
} on non-Linux platform.");
571
else if (!_signTool.VerifySignedDeb(log, file.
FullPath
))
573
_log.LogError($"Deb package {file.
FullPath
} is not signed properly.");
578
if (!_signTool.VerifySignedPowerShellFile(file.
FullPath
))
580
_log.LogError($"Powershell file {file.
FullPath
} does not have a signature mark.");
588
foreach (var (relativeName, _, _) in ZipData.ReadEntries(file.
FullPath
, _signTool.TempDir, _signTool.TarToolPath, ignoreContent: true))
615
_log.LogError($"Container {file.
FullPath
} does not have signature marker.");
619
_log.LogMessage(MessageImportance.Low, $"Container {file.
FullPath
} has a signature marker.");
631
_log.LogMessage($"Skipping strong-name validation for {file.
FullPath
}.");
635
if (file.IsManaged() && !file.IsCrossgened() && !_signTool.VerifyStrongNameSign(file.
FullPath
))
637
_log.LogError($"Assembly {file.
FullPath
} is not strong-name signed correctly.");
641
_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
}");
675
string archivePath = zipFileSignInfo.
FullPath
;
src\FileSignInfo.cs (2)
69
internal bool IsManaged() => ContentUtil.IsManaged(
FullPath
);
71
internal bool IsCrossgened() => ContentUtil.IsCrossgened(
FullPath
);
src\SignTool.cs (7)
92
File.Copy(item.
FullPath
, Path.Combine(osxFilesZippingDir, item.FileName), overwrite: true);
101
File.Copy(Path.Combine(osxFilesZippingDir, item.FileName), item.
FullPath
, overwrite: true);
130
AppendLine(builder, depth: 2, text: $@"<FilesToSign Include=""{Uri.EscapeDataString(fileToSign.
FullPath
)}"">");
192
_log.LogError($"Found file that needs to be strong-name sign ({file.
FullPath
}), but path to 'sn.exe' wasn't specified.");
196
_log.LogMessage($"Strong-name signing {file.
FullPath
} locally.");
202
Arguments = $@"-R ""{file.
FullPath
}"" ""{file.SignInfo.StrongName}""",
211
_log.LogError($"Failed to strong-name sign file {file.
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);