Creates an EmbeddedDirectory containing the resources from all provided assemblies using a merge strategy.
This is a static method.
This is a public
method.
Returns an EmbeddedDirectory containing the merged resources from all provided assemblies. If multiple resources have the same name, then latest one is picked (regardless of assembly name).
Thrown when the provided assemblies are null
or contains null
values.
Thrown when multiple assembles or files have the same case-insensitive name, but different case-sensitive names.
Given two assemblies with the following embedded resources:
Assembly1.directory1.resource-1.txt
Assembly1.directory1.resource-2.txt
Assembly1.directory2.resource-3.txt
Assembly2.directory1.resource-2.txt
Assembly2.directory1.resource-3.txt
Assembly2.directory3.resource-3.txt
The result of this method will be an EmbeddedDirectory having the following structure:
/
directory1/
resource-1.txt (from Assembly1)
resource-2.txt (from Assembly2, matching resources)
resource-3.txt (from Assembly2)
directory2/
resource-3.txt (from Assembly1)
directory3/
resource-3.txt (from Assembly2)
The matching is done by ignoring the case of each directory and file.