Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
通过在 GAC 中使用大多数程序集,可以提高启动性能,但无论出于何种原因,我都没有遇到过这样做的建议?
我们已经开始以带外方式发布越来越多的框架组件,这样您就不必构建设置,甚至不必等待 .NET Framework 的下一个版本。
话虽如此,来自 NuGet 的程序集就像您的应用程序程序集。这意味着,使用 NGEN 并将它们添加到 GAC可以提高您的启动性能。与往常一样,您应该衡量它是否有所作为。GACing 和 NGENing 增加了部署的复杂性,而这些复杂性应该被附加价值所抵消。