Publishing Azure Functions with large binary dependencies

Viewed 153

I have an F# project on Azure Functions with a dependency on a large binary file pandoc.exe. Currently I am publishing the function with Azure Functions Core Tools using:

func azure functionapp publish <function app name>

In the .fsproj I added:

<Content Include="pandoc.exe">
  <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>

This works, however I notice it uploads the full zip bundle ~25MB each time I publish. As pandoc is unchanged and >99% of the bundle size I am wondering if there is a way to only publish my dll and keep the existing exe as it is unchanged?

1 Answers
Related