MissingMethodException while using Csvhelper UseExcelLeadingZerosFormatForNumerics =true configuration in c#
<p>I am using Csvhelper (version 2.16) to write the records to csv file.</p>

<p><a href="https://joshclose.github.io/CsvHelper/#getting-started" rel="nofollow">https://joshclose.github.io/CsvHelper/#getting-started</a></p>

<p>I want to keep leading zeros when generated csv file is opened in excel format,
so i have used UseExcelLeadingZerosFormatForNumerics= true configuration while writing the csv file.</p>

<pre><code>using (SqlDataReader dataReader = sqlHelper.ExecuteReader(sqlQuery, parameters))
                {
                    using (StreamWriter writer = new StreamWriter(csvfilepathTowrite))
                    {
                        CsvConfiguration config = new CsvConfiguration
                        {
                            UseExcelLeadingZerosFormatForNumerics = true
                        };

                        var csv = new CsvWriter(writer, config);

                        if (dataReader != null)
                        {
                            for (var i = 0; i &lt; dataReader.FieldCount; i++)
                            {
                                csv.WriteField(dataReader.GetName(i));
                            }
                            csv.NextRecord();
                            while (dataReader.Read())
                            {
                                for (var i = 0; i &lt; dataReader.FieldCount; i++)
                                {
                                    csv.WriteField(dataReader[i]);
                                }
                                csv.NextRecord();
                            }
                        }
                        else
                        {
                           //exception
                        }
                    }
                }
</code></pre>

<p>but it throws following exception</p>

<p>Method not found: 
'Void CsvHelper.Configuration.CsvConfiguration.set_UseExcelLeadingZerosFormatForNumerics(Boolean)'.</p>

<p>What might be the problem here?</p>

<p>thanks,
Amol</p>