title: Using Apache Lucene.Net 4.8.0 with .NET Standard 1.5 and Visual Studio 2017
body: <p>On the <code>Lucene.Net</code> GitHub page (<a href="https://github.com/apache/lucenenet" rel="nofollow noreferrer">https://github.com/apache/lucenenet</a>), it says that <code>version 4.8.0</code> (the beta version currently available on GitHub) is compatible with the <code>.Net Standard 1.5</code> and <code>.Net 4.5.1</code> frameworks. Fantastic!</p>
  
  <p>I did a <code>git clone https://github.com/apache/lucenenet.git</code> to pull the code. The solution opened right up and compiled in <code>Visual Studio 2017</code> with no errors under the default framework of <code>.NET 4.5.1</code>. All is well thus far. </p>
  
  <p><strong>What I really need is to compile <code>Lucene.NET 4.8.0</code> to work with <code>.NET Core 1.1.x</code>. This is where things kind of went a bit sideways.</strong></p>
  
  <p>When I opened up the properties page for the <code>Lucene.Net</code> project (as well as the many other included projects), they are all referencing the default <code>.NET 4.5.1</code>. There does not appear to be any option to reference <code>.NET Standard 1.x</code> or <code>.NET Core 1.x.y</code> instead of a standard .NET framework version.</p>
  
  <p>I am sure this must be a really simple fix, but I am at a bit of a loss as to how get <code>Lucene.Net</code> working with <code>.Net Standard</code> / <code>.Net Core</code>. </p>
  
  <p>Here are a few quick notes that might be of interest. </p>
  
  <ul>
  <li>The latest <code>Dot Net Core SDK</code> is installed on my machine.</li>
  <li>I installed the <code>NetStandard.Library</code> to all projects using <code>NuGet Package Manager</code>. (The <code>NetStandard.Library</code> appears in the references for all projects with a blue and white icon. The solution still compiles but I am unable to drill down and see the constituent files in the <code>NetStandard.Library</code> as I can with other <code>.NET Standard</code> or <code>.NET Core</code> projects.)</li>
  <li>I ran <code>dotnet restore</code> just in case that might have been needed to pull the various files needed for the <code>NetStandard.Library</code>.</li>
  <li><p>All of the projects in the solution contain <code>[projectname].project.json</code> files. After installing the NetStandard.Library to each project, there is now a dependencies entry in the <code>[projectname].project.json</code> file.</p>
  
  <p>"dependencies": {
      "NETStandard.Library": "1.6.1"
    }</p></li>
  <li><p>I did attempt to update just the <code>framework</code> entry in the <code>Lucene.Net.project.json</code> file to use <code>.NETStandard,Version=1.5</code> and then recompile only the <code>Lucene.Net</code> project. I ended up with several compile errors so I reverted the entry to its orginal value of <code>net451</code>.</p></li>
  <li>There is no <code>.csproj</code> file for any of the projects. I did not attempt
  to run <code>dotnet migrate</code> as I was unsure if it was necessary, and I
  did not want to introduce additional variables.</li>
  </ul>
  
  <p>Any help here is much appreciated. Thank you so much!</p>