System.TypeLoadException occurred
HResult=0x80131522
Message=Method 'CreateComponents' in type 'Lucene.Net.Analysis.Standard.StandardAnalyzer' from assembly 'Lucene.Net.Analysis.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
Source=LuceneNetDemo
StackTrace:
at LuceneNetDemo.GitHubIndex..ctor(Directory indexDirectory) in LuceneNetDemo\GitHubIndex.cs:line 56
at LuceneNetDemo.Program.Main(String[] args) in LuceneNetDemo\Program.cs:line 12
This actually appears to be a bug in the latest NuGet package rather than the demo, but it isn't clear to me how to submit an issue on the main Lucene.Net project.
The latest versions at this time which exhibit this issue:
<package id="Lucene.Net" version="4.8.0.770-beta" targetFramework="net461" />
<package id="Lucene.Net.Analysis.Common" version="4.8.0.1035-beta" targetFramework="net461" />
It looks like the issue is the 4.8.0.1035 in Lucene.Net.Analysis.Common. This is the version you get if you ask for latest pre-release. But for Lucene.Net you get 4.8.0.770. If you specify 4.8.0.770-beta of Lucene.Net.Analysis.Common, the issue goes away. Did 1035 get released by accident?