string GetResourcesName(ResXFile resxFile, string directoryPath) { string newFileName = Path.Combine(directoryPath, Path.GetFileName(resxFile.LocalizedFileName)); newFileName = Path.ChangeExtension(newFileName, ".resources"); return newFileName; }