Skip to content

Conversation

@KevinRansom
Copy link
Contributor

With the Arcade build and it's signing approach and requirement to not require administrator permissions we lost the ability to NGEN the protocompiler and desktop compiler build in the OSS repo.

This PR , re-enables that … because let's face it, Ngen is free speed.

NGen is silently enabled, when you open an administrator window and build the repo. If you open a non-elevated build window, or build from an unelevated VS then you will get non-ngen behavior.

When the build is run under the CI it will run without Administrator privileges.

When built with:

  • Administrator: the build uses delay signing and disables key verification to enable assembly load.
  • Non Elevated: the build uses public signing.

Public signed assemblies cannot be NGEN'd, because they claim to be full signed, when they are only partially signed, so NGEN fails when verifying hashes.

@KevinRansom KevinRansom requested a review from brettfo March 28, 2019 02:20
@dsyme
Copy link
Contributor

dsyme commented Mar 28, 2019

👍

@KevinRansom KevinRansom merged commit 134d868 into dotnet:master Mar 28, 2019
@KevinRansom KevinRansom deleted the reneablengen branch March 29, 2019 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants