Github user conniey commented on the issue:

    https://github.com/apache/lucenenet/pull/191
  
    @CVertex 
    
    Since this PR is not merged yet, you'll have to build it from source, add 
it as a NuGet package and then add a reference to it
    
    __Build Lucene.NET for .NET Core__
    
    1. Install [.NET Core SDK for Mac 
OSX](https://www.microsoft.com/net/core#macos)
    2. `git clone https://github.com/conniey/lucenenet`
    3. `git checkout netcoremigration`
    4. `cd src\Lucene.Net.Core`
    5. `dotnet restore`
    6. `dotnet build`
    7. `dotnet package` (This will create a package called 
Lucene.Net.Core.4.8.0-alpha.nupkg under `bin\Debug`)
    
    __Create a .NET Core App__
    
    1. `mkdir hwapp`
    2. `cd hwapp`
    3. `dotnet new`
    4. `vi NuGet.config`
        * Add the path to the directory containing the Lucene.Net.Core NuGet 
package. Example:
    
    ```xml
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <packageSources>
        <add key="lucene" 
value="/Users/conniey/git/lucenenet/src/Lucene.Net.Core/bin/Debug/" />
      <packageSources>
    </configuration>
    ```
    
    5. Edit `project.json` to contain the dependency on "Lucene.Net.Core": 
"4.8.0-alpha". Example:
    
    ```json
    {
      "version": "1.0.0-*",
      "buildOptions": {
        "debugType": "portable",
        "emitEntryPoint": true
      },
      "dependencies": {
        "Lucene.Net.Core": "4.8.0-alpha"
       },
      "frameworks": {
        "netcoreapp1.0": {
          "dependencies": {
            "Microsoft.NETCore.App": {
              "type": "platform",
              "version": "1.0.1"
            }
          },
          "imports": "dnxcore50"
        }
      }
    }
    ```
    
    __Create/Execute Program__
    
    1. Use library in program:
    
    ```csharp
    using System;
    using Lucene.Net.Index;
    
    namespace ConsoleApplication
    {
        public class Program
        {
            public static void Main(string[] args)
            {
                Console.WriteLine("Hello World!");
    
                BufferedUpdates updates = new BufferedUpdates();
                Console.WriteLine($"Updates {updates.ToString()}");
            }
        }
    }
    ```
    
    2. `dotnet restore`
    3. `dotnet run`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to