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.
TrimMode limitations
From the course: .NET 9 Maui: Enhanced Features for Cross-Platform Development
TrimMode limitations
- [Instructor] In the last video, we turned on full trimming and some warnings showed up. So what do these all mean? Microsoft has provided us a list of trimming incompatibilities that we may be running into. So let's take a look at what these warnings are. I recompiled the project in visual studios so the warnings would show up and there's actually only three lines of code that are causing this. We see we've got the about page XML.CS line 16 and the main page XML.CS line seven and QR detail page XML.CS line six. So let's look at the about page first. So we've got about page XML CS and it's complaining about line 16. And this is where we're calling into the hybrid WebView set invoke JavaScript target. Let's look through our list of incompatibilities and see if this might cause us any problems. Alright, and if we look at the incompatibilities, there's one that says the hybrid WebView control due to its use of dynamic system.text.JSON serialization features. So this says it's just plain…