private static string GetAssemblyModuleLocalName(LocBamlOptions options, string targetAssemblyName)
{
string moduleName;
if (targetAssemblyName.ToLower(CultureInfo.InvariantCulture).EndsWith(".resources.dll"))
{
// we create the satellite assembly name
moduleName = string.Format(
CultureInfo.InvariantCulture,
"{0}.{1}.{2}",
targetAssemblyName.Substring(0, targetAssemblyName.Length - ".resources.dll".Length),
options.CultureInfo.Name,
"resources.dll"
);
}
else
{
moduleName = targetAssemblyName;
}
return moduleName;
}