Is it advisable to add assemblies from nuget like Microsoft.Bcl.Async to the GAC and ngen them?

StackOverflow https://stackoverflow.com/questions/21373006

  •  03-10-2022
  •  | 
  •  

문제

Startup performance may be improved by having most assemblies ngen-ed and in the GAC, but for whatever reason I haven't come across recommendations to do this?

도움이 되었습니까?

해결책

We've started to ship more and more framework components in an out-of-band fashion so that you don't have to build a setup or even have to wait for the next version of the .NET Framework.

That being said, assemblies coming from NuGet are like your application assemblies. Meaning, using NGEN and adding them to the GAC can improve your startup performance. As always, you should measure to see whether it makes a difference. GACing as well as NGENing add complexity to your deployment that should be offset by added value.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top