Reputation:
Using csx scripts in Azure Functions I can use the Project.json
file to install nuget packages, but when I'm using fsx scripts the packages aren't installed (the log console never shows the Starting NuGet restore
message). The only way I found is installing locally and uploading the dependencies. Am I missing something?
Upvotes: 1
Views: 196
Reputation: 243096
I think that the current execution model for F# in Azure functions does not support project.json. There is a work in progress PR to improve F# support that will enable this.
For now, I think there are two options:
I have not tested the second approach with Azure functions, but I think it could work. For example, see the F# Snippets' deployment script which calls a build script that starts by using Paket to restore dependencies. This way, you need just paket.bootstrapper.exe
and paket.dependencies
with paket.lock
to specify your NuGet dependencies.
Upvotes: 1