private void AddLibraryReference(string libraryName)
{
var config = context.ProjectConfiguration;
ResourceLibraryInfo library = config.ResourceLibraries[libraryName];
foreach (string libraryRef in library.LibraryDependencies)
{
if (!config.ResourceLibraries.ContainsKey(libraryRef))
{
log.ErrorFormat("Library '{0}' is referencing a non-existing library '{1}'.", library.Name, libraryRef);
continue;
}
ResourceLibraryInfo referenced = config.ResourceLibraries[libraryRef];
moduleResources.AddRange(referenced.Resources);
}
moduleResources.AddRange(library.Resources);
this.AddViewResources(moduleResources);
}