System.Globalization.CultureNotFoundException with a message about the invariant culture being the only supported one in globalization-invariant mode. I managed to solve this issue by adding <InvariantGlobalization>false</InvariantGlobalization> to my test project file.System.ArgumentException in a method where we use IStringLocalizer. The error message states: A message must be specified when calling WithMessage.IStringLocalizer.