How do I deploy a web application using F# to Azure Web Site

后端 未结 1 1595
走了就别回头了
走了就别回头了 2021-01-13 11:00

When I deploy my web application to an Azure Web Site, I am getting the following error:

Could not load file or assembly \'FSharp.Core, Version=4.0.0.0, Culture=neut

相关标签:
1条回答
  • 2021-01-13 12:00

    Reposting from comment:

    In my experience, in order to use an F# library from a C# project in Azure, it is necessary to reference FSharp.Core directly from the C# project in order for the proper assemblies to be uploaded. With C#-to-C# project references the 'Copy Local' property seems to propagate correctly, whereas with C#-to-F# references it does not.

    I assume compiling with the --standalone flag probably works as well, but I haven't tried it personally.

    0 讨论(0)
提交回复
热议问题