AssemblyUtilities Class
public static class AssemblyUtilitiesNo documentation is available.
Methods
| Name | Description |
|---|---|
| GetInformationalVersion(Assembly) | Gets the informational version of an assembly. |
| GetLinkerTimestampUtc(Assembly) | Gets the linker timestamp of a specified assembly. |
| GetLinkerTimestampUtc(string) | Gets the linker timestamp of a specified assembly. |
| GetRequiredManifestResourceStream(Assembly, string) | Gets a manifest resource stream, throwing an exception if not found. |
| GetRequiredManifestResourceStream(Assembly, Type, string) | Gets a manifest resource stream scoped to the specified type's namespace, throwing an exception if not found. |
GetInformationalVersion(Assembly)
AssemblyUtilities.csGetLinkerTimestampUtc overloads
GetLinkerTimestampUtc(Assembly)
AssemblyUtilities.csGetLinkerTimestampUtc(string)
AssemblyUtilities.csGets the linker timestamp of a specified assembly.
Parameters
filePathstring- The assembly file path.
Returns
DateTime? A valid date time, or null if the file has no meaningful timestamp or could not be read.
Remarks
Deterministic builds, which the .NET SDK produces by default, store a hash of the content in the COFF TimeDateStamp field instead of a date. Those are reported as null rather than as the arbitrary date the hash decodes to.