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..
4 thoughts on “The type or namespace name Xrm could not be found (are you missing a using directive or an assembly reference?) error while using Azure Functions 2.x”