Relative Content

Tag Archive for c#ios.netmaui

Resources folder path location in iOS .NET MAUI

I am building an archery app to keep score. I have a folder called ScoreData
reData in which I am writing to a file and storing in. When scoring is finished, I want to write the data to a simple .txt file in said folder. For my windows debugging, it is searching the solution using GetEntryAssembly and going up a folder each time until it finds the ScoreData folder. This solution gives me no errors when debugging using “Windows Machine” but when I hook up my iPhone to debug, it throws errors on the GetDirectories() method.