5.x-codecomplete-netcore branch does not build
Closed this issue · 1 comments
kroffdaddy commented
After cloning the elasticsearch-net-example repo, having selected the 5.x-codecomplete-netcore branch, I tried dotnet restore
from the NuSearch.Web folder, which results in the following error:
Package Elasticsearch.Net 5.5.0 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package Elasticsearch.Net 5.5.0 supports:\r
russcam commented
Hey @kroffdaddy, you've jumped on this branch a little too early 😄
There are some changes that need to be merged into it from another branch first but it should still be compilable right now if you want an early look. Sadly, there are several bugs in the .NET Core runtime in SDK 1.0.4 which means
- that it only looks in the global NuGet cache for packages, rather than the local packages directory. You can fix this by following the troubleshooting guide.
dotnet restore
can fail even though the packages it is restoring are compatible, like Elasticsearch.Net, which isnetstandard13
compatible. You can fix this by deleting both theobj
andbin
directories inNuGet.Web
, as well as all packages inpackages
folder.
I'm going to close this for now as these details will be in the final guide when it's truly ready!