Skip to content

Unit Testing read/write methods in MAUI apps involving MauiAssets #2732

Answered by cam13469
cam13469 asked this question in Question
Discussion options

You must be logged in to vote

Thanks for your answer. It turns out the fix is to ensure you have added the:

<UseMaui>true</UseMaui>

In your xUnit test project .csproj file so that you can effectively target MauiAssets when reading and writing to files affected by that target.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cam13469
Comment options

Answer selected by cam13469
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants