I’ve an wpf appliction just working fine with all the Model & ViewModel in seperate project and wpf view in seperate.
I want to use the same for MAUI application.
In WPF we use following code to display message or error
MessageBox.Show("ErrStr", "Title", MessageBoxButton.OK, MessageBoxImage.Error);
In MAUI we use following code to display message or error
await Application.Current.MainPage.DisplayAlert("Error Occured", "ErrMsg", "OK");
Now my problem is how can I keep both codes on single project and view i.e. for WPF & Android in their independent projects.