Compiling SDK with Dot net core 5.0

There is a way to compile a C# program with SDK 2022 or newer with Dot net core 5.0?

No. Currently, there is no way to do that.