![![enter image description here](https://i.stack.imgur.com/Y8PVb.jpg)
У меня есть файл Startup.cs, где мне нужно получить доступ к файлам ресурсов из папки «Ресурсы» в другой библиотеке классов.
Я попытался указать путь к DLL и получить все файлы из DLL.Я не уверен, как получить папку "Ресурсы" из DLL.
Это то, что я пытался:
string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, $"Localization)}.dll", Path.GetFileName("Resoures"));
string[] files = Directory.GetFileSystemEntries(path);
Ожидаемое:
string[] files = Directory.GetFileSystemEntries(path);
файлы должны иметьимена файлов из папки «Ресурсы»
Факт:
An error occurred while starting the application.
DirectoryNotFoundException: Could not find a part of the path
'D:\home\site\wwwroot\DataAccess.Repositories.Localization.dll\Resoures'.