I'm not exactly sure here, but wouldn't it be better to create a second API, with .Net 8, then add to source control, and remove first iteration of API as it will no longer be supported (eventually)