-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Description
In the Remarks section of the generatePublisherEvidence element page. there is a big blue warning note saying "In the .NET Framework 4 and later, this element has no effect on assembly load times."
That statement is not true (or at least, is not always true).
In our .NET 4.7 desktop app, we have needed to add <generatePublisherEvidence enabled="false"/> to the *.exe.config files for all of our signed executables, in order to prevent 30-40 launch delays when a system is behind an HTTP proxy and the servers hosting certificate revocation lists are not reachable.
Without the magic XML in the App.config file, the assembly is delayed for 40-seconds while the OS tries to reach out to OCSP and CRL endpoints to figure out if the app's certificate has been invalidated.
Some of our executables are Windows Services, so causing these startup delays is definitely something to avoid. In fact there is already a note saying "We recommend you disable this feature for Windows services", which seems to go directly against the "This setting doesn't apply to .NET 4 or greate" note.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 4a579a8e-74fd-a86e-8e80-78719c9b1b4e
- Version Independent ID: 56f18e1d-69fe-4423-23ad-29d7d5bce914
- Content: <generatePublisherEvidence> Element
- Content Source: docs/framework/configure-apps/file-schema/runtime/generatepublisherevidence-element.md
- Product: dotnet-framework
- GitHub Login: @rpetrusha
- Microsoft Alias: ronpet