5

I am using code from this answer to get the linker timestamp of a .NET assembly.

However, if the assembly was compiled as "deterministic", this value is not an accurate measure of when the assembly was built (reference), and so I want to ignore it.

Is there any information in the PE header (or any other part of the assembly) which indicates that it's been built as "deterministic"?

RobSiklos
  • 8,348
  • 5
  • 47
  • 77

1 Answers1

1

NuGet Package Explorer can be used to find out if an assembly in a nuget package was built using the deterministic flag.

Looking through the source code there seem to be multiple checks before marking an assembly/whole package to be built deterministic. Looks like they implemented everything of this answer in code to find out if an assembly was build deterministic.

stefan.seeland
  • 2,065
  • 2
  • 17
  • 29