Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Folder path not found #1685

Closed
BlaiseForrester opened this issue Dec 13, 2024 · 2 comments
Closed

Folder path not found #1685

BlaiseForrester opened this issue Dec 13, 2024 · 2 comments
Labels
area-maui question Further information is requested

Comments

@BlaiseForrester
Copy link

Can anybody please tell me how to assign a folder path to a variable in a dotnet Maui project? Have a folder called names containing txt files each of which is a list of names. Moved the names folder into the project folder. Like to use this folder as data source for my app. Created the console based version of this project already and I did it as follows below:
// declare a variable to store the path of the names folder
string dirPath = Path.Combine(Directory.GetCurrentDirectory(), "names");
// declare an array to store the names of the txt files in the names folder
string[] fileNames = Directory.GetFiles(dirPath, "*.txt");
Only trouble is it is not working in the Maui project saying that it cannot find the source.

@AbhitejJohn AbhitejJohn added question Further information is requested area-maui labels Dec 13, 2024
@AbhitejJohn
Copy link

@BlaiseForrester : Thanks for reaching out. Could you also share how you configure the source?
/cc: @AllenD-MSFT

@emaf
Copy link
Member

emaf commented Dec 13, 2024

Hi, the MAUI SDK team will be able to assist you with this problem if you report it in https://github.com/dotnet/maui/issues.

Thanks!

@emaf emaf closed this as completed Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-maui question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants