Reputation: 626
I am writing an azure function that needs a NuGet package Sendgrid
. The only way I found was to update the .csproj
file.
Now in the View File option, I can't go back to the parent directory, but I can go from the Console. I just need to update the .csproj
file in the parent directory so that I can update the Nuget packages.
I need to all the work in the provided in the portal editor. I know I can publish the code by any IDE
Thanks
UPDATE 1: Link to update csproj but the reference to Sendgrid is not established after the link
UPDATE 2: (ANSWER) Link to manually add Nuget Package This worked for me. But Update 1 was worth trying
Upvotes: 1
Views: 1073
Reputation: 73303
The only way I found was to update the .csproj file
To add a NuGet package to an Azure function, you can add it to the project.json file in the portal:
Then reference it in the .csx file:
Upvotes: 1