When working with Azure Function in portal, added a
project.json file to add NuGet package. However, this is not triggering and
compilation failed due to required NuGet package.
Repro steps
Step 1: Created
a new "Function app" resource, specified .NET as runtime stack.
Step 2: Created
a new Function, and as Programming Environment,
=> "In-Portal".
Step 3: Added
BlobTriggerCSharp function
Step 4: Added
a project.json which contains required NuGet package information.
Step 5: Click on Save.
Nothing happen.
Ideally NuGet package should install.
(Problem
is that your Azure Function run time environment is ~2, which should be ~1)
SOLUTION
FOR THIS PROBLEM:
Create a new Function App.
Go to the Function app settings and find the Run time
version.
Switch it to 1 (like below)

Now Add a new function and add project.json
and make your function run J!