From the course: .NET 9 Maui: Enhanced Features for Cross-Platform Development
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Setting up an application for native embedding
From the course: .NET 9 Maui: Enhanced Features for Cross-Platform Development
Setting up an application for native embedding
- [Instructor] MAUI allows us to embed native content within our MAUI apps and also to go the other way around and allows us to embed MAUI apps in our .NET iOS projects. If you get the start code for this video, there's a new solution called native embedding that I have here. It contains two projects, a default MAUI project, and a simple iOS project. Let's go through how we would embed the MAUI project in the iOS project in .NET 9. The process in .NET 9 to allow this has been vastly simplified when compared to previous versions. However, there still are many manual steps that need to be performed. First thing I'm going to do is modify the MAUI project file. So here's the MAUI project and we'll right click on it and edit the project file. We can get rid of the normal target frameworks and output type, and this is going to result in a MAUI project that can only be embedded in a native .NET platform project or another MAUI project. So I'm going to get rid of this right here and we'll get…