# Cannot build elasticsearch-net from source, missing references

**URL:** <https://discuss.elastic.co/t/cannot-build-elasticsearch-net-from-source-missing-references/86208>\
**Category:** Elasticsearch\
**Created:** [May 18, 2017, 7:16am UTC](https://discuss.elastic.co/t/cannot-build-elasticsearch-net-from-source-missing-references/86208 "2017-05-18T07:16:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![christofur](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@christofur](https://discuss.elastic.co/u/christofur)\
**Post date:** [May 18, 2017, 7:16am UTC](https://discuss.elastic.co/t/cannot-build-elasticsearch-net-from-source-missing-references/86208/1 "2017-05-18T07:16:22Z")

</div>

Hi!

I'm trying to build the master branch of[elasticsearch-net](https://github.com/elastic/elasticsearch-net) from scratch, using Visual Studio 2017 Community.

The solution opens fine, and NuGet dependencies are restored.

When I try to build the solution, the project Nest will not build, giving thousands of errors regarding **Newtonsoft.Json** being missing. A typical error is:

`2>Aggregations\AggregateJsonConverter.cs(7,7,7,17): error CS0246: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)`

I've double checked that the NuGet **Newtonsont.Json** dependency has downloaded - it has - and intellisense even works.

Does anyone know how I can get the source to build, or what else to check?

Thanks,  
Chris.

---

<div class="post-metadata">

**Author:** ![christofur](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@christofur](https://discuss.elastic.co/u/christofur)\
**Post date:** [May 21, 2017, 7:58pm UTC](https://discuss.elastic.co/t/cannot-build-elasticsearch-net-from-source-missing-references/86208/2 "2017-05-21T19:58:30Z")

</div>

My solution to this:

Use the build scripts, rather than trying to build in Visual Studio (my version is 2017).

See the build details here - [https://github.com/elastic/elasticsearch-net/blob/master/contributing.md](https://github.com/elastic/elasticsearch-net/blob/master/contributing.md)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 18, 2017, 7:58pm UTC](https://discuss.elastic.co/t/cannot-build-elasticsearch-net-from-source-missing-references/86208/3 "2017-06-18T19:58:32Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
