在 .csproj 中设置

<ConcurrentGarbageCollection>true</ConcurrentGarbageCollection>
<ServerGarbageCollection>false</ServerGarbageCollection>
本文介绍如何在.csproj文件中设置并发垃圾回收为true,同时禁用服务器垃圾回收,以优化.NET应用程序的性能。
在 .csproj 中设置

<ConcurrentGarbageCollection>true</ConcurrentGarbageCollection>
<ServerGarbageCollection>false</ServerGarbageCollection>

被折叠的 条评论
为什么被折叠?