As you see 4.8 DevPack is being installed. If you know what pack is missing you can try installing it during the build to see if that works and if it does we can roll it out during the next image update.
While looking for the .NET 4.0 Dev Pack, I found this:
Starting with Visual Studio 2022, Visual Studio no longer includes .NET Framework components for .NET Framework 4.0 - 4.5.1 because these versions are no longer supported. Visual Studio 2022 and later versions can't build apps that target .NET Framework 4.0 through .NET Framework 4.5.1. To continue building these apps, you can use Visual Studio 2019 or an earlier version.