Hi @Bhat Sanjay Subrahmanya (SX/ETM12-EM) , Welcome to Microsoft Q&A,
You can try to use AppContext.BaseDirectory instead of AppDomain.CurrentDomain.BaseDirectory in .Net 8.0.
Uri baseDirectory = new Uri(AppContext.BaseDirectory);
Uri absoluteUri = ResolveUri(source, baseDirectory);
You can use AppContext.BaseDirectory for URI resolution by modifying the MediaElementBehavior or related binding code.
Best Regards,
Jiale
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.