Update C# build script to reduce dump size