private string GetResourceContainer(string source)
{
var splittedString = source.Split(new[] { "|" }, StringSplitOptions.None);
var assemblyName = splittedString[0];
var sourceName = splittedString[1];
// Note: important to remove the current assembly, when reading from the current assembly, we cannot prefix [AssemblyName]/
var resourceContainer = string.Empty;
if (!string.Equals(assemblyName, StartupAssemblyName))
{
resourceContainer = string.Format("{0}/", assemblyName);
}
resourceContainer = string.Format("{0}{1}", resourceContainer, sourceName);
return resourceContainer;
}
#endif