Hello,
What's the trick to including this file in the physical build?
For MauiAssert
resource files, the official recommended access method is to use the OpenAppPackageFileAsync API.
FileSystem.OpenAppPackageFileAsync Files that were added to the project with the Build Action of MauiAsset can be opened with this method. .NET MAUI projects will process any file in the
Resources\Raw
folder as a MauiAsset.
Please refer to Bundled files for more detailed information.
Best Regards,
Alec Liu.
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.