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

Recently while working on 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..