internal void InitializeNativeDlls() { var tempDirPath = CreateDllDirectory(); WinApi.SetDllDirectory(tempDirPath); var dependencies = EmbeddedResources.GetResourceNames() .Where(x => x.Contains(ArchitectureString) && x.EndsWith(".dll")); foreach (var dep in dependencies) { ExtractAndLoadEmbeddedDependency(tempDirPath, dep); } }