Recently while working on Azure Functions (https://nishantrana.me/category/azure-functions/), we started getting the error that type or namespace Xrm could not be found.
We had added the project.json file with appropriate NuGet Package reference inside it
It was later we realized that project.json file have been replaced with function.proj in Azure Function 2.0.
More details here
Hope it helps..