@Vijay Lakshmi Thanks for reaching out. If you’re targeting .NET Framework 4.8 but require .NET 6 for build purposes, the end of support timeline would be tied to .NET 6, which is November 12, 2024.
Refer: https://azure.microsoft.com/en-us/updates/dotnet6support/
do let me know incase of further queries, I would be happy to assist you.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.