Maui FileSystem.AppDataDirectory is throwing exception during unit testing

Kannan P S 5 Reputation points
2024-03-26T12:44:12.1533333+00:00

During the unit testing, microsoft.maui.applicationmodel.notimplementedinreferenceassemblyexception is throwing when using FileSystem.AppDataDirectory. The targetframework is net8.0.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,720 questions
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.