Need help with finding the filepath of a folder inside the solution without hard coding it
Basically I have a console app that allows users to choose from a bunch of different text files to load from a folder, I want to get the folders path without hardcoding so that anyone can use it in theory
4 Replies
it seems to me that you want to use this https://learn.microsoft.com/en-us/dotnet/api/system.io.directory.enumeratefiles?view=net-8.0
Directory.EnumerateFiles Method (System.IO)
Returns an enumerable collection of full file names that meet specified criteria.
sorry if my explanation was bad ^^" i more so just want to get the filepath for the folder itself
well you dont generally ship the code with the app
you can copy files to the output directory with
None
in msbuild