private void ThrowIfComponentNameDoesNotEndInProperExtension()
 {
     if (!ComponentName.EndsWith(ComponentDefinition.FileExtension, StringComparison.InvariantCultureIgnoreCase))
     {
         string message = string.Format(
             CultureInfo.CurrentCulture,
             LocalizedStrings.BuildComponentTool_ComponentNameHasWrongExtension,
             ComponentName,
             ComponentDefinition.FileExtension);
         throw new CommandLineOperationException(message, showToolHelp: true);
     }
 }