System.NotSupportedException : Use of ResourceManager for custom types is disabled. Set the MSBuild Property CustomResourceTypesSupport to true in order to enable it.
this issue seems relevant with dotnet/runtime#51833

and by the way, where can i find the resgen.exe for net7.0 ? i only find a resgen.exe of net framework4.8 on my machine.