title: Encoding.RegisterProvider(CodePagesEncodingProvider.Instance) does not add extra encoding providers
body: <p>I am developing a <code>netcoreapp2.0</code> console application and I need access to the whole encoding package from .NET.</p>
  
  <p>I have already added the <code>System.Text.Encoding.CodePages Version=4.4.0</code> Nuget package from <a href="https://www.nuget.org/packages/System.Text.Encoding.CodePages/" rel="noreferrer">this page</a> to my project and cleaned/restored the project several time.</p>
  
  <p>However I can't get the extra encoding I need.</p>
  
  <p>The following code:</p>
  
  <pre><code>Console.WriteLine(Encoding.GetEncodings().Length);
  Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
  Console.WriteLine(Encoding.GetEncodings().Length);
  </code></pre>
  
  <p>returns:</p>
  
  <pre><code>8
  8
  </code></pre>
  
  <p>and no extra encoding is added to <code>Encoding</code> class.</p>
  
  <p>These are all the references I have in my project:</p>
  
  <pre><code>&lt;PackageReference Include="Microsoft.Extensions.Configuration" Version="2.0.0" /&gt;
  &lt;PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="2.0.0" /&gt;
  &lt;PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.0.0" /&gt;
  &lt;PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="2.0.0" /&gt;
  &lt;PackageReference Include="System.Data.HashFunction.xxHash" Version="2.0.0-ci-00012" /&gt;
  &lt;PackageReference Include="Nager.PublicSuffix" Version="1.1.0" /&gt;
  &lt;PackageReference Include="System.Text.Encoding.CodePages" Version="4.4.0" /&gt;
  &lt;PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.0.0" /&gt;
  &lt;PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.0.0" /&gt;
  
  &lt;DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0" /&gt;
  </code></pre>
  
  <p>Am I doing something wrong here?</p>
  
  <p><strong>Update</strong></p>
  
  <p>After reinstalling the .NET Core SDK 2.0.2 again, things started to work fine and I can use the extended Encoding code pages using <code>Encoding.GetEncoding()</code> method, however the <code>Encoding.GetEncodings()</code> still returns the initial 8 Encoding code pages.</p>