I Have several images set as Resources in my project. now i want to store in a variable the amount of images i have in that folder.
How can i achive this? I Am building a WPF Application. When i try and use Pack URL like this :
string[] filePaths = Directory.GetFiles("pack://application:,,,/Resources/Images/Output/", "*.jpg");
i get an error that The given path's format is not supported.
Notes:
- The resources are not specified in some file, they are just set as Resources on it's Build Action.
- I only need some of the images in the assembly. They are within a specific folder
Strings i tried:
pack://application:,,,/Resources/Images/Output/
YearBook;component/Resources/Images/Output/