rspeele / TaskBuilder.fs

F# computation expression builder for System.Threading.Tasks
Creative Commons Zero v1.0 Universal
237 stars 27 forks source link

Could not load type 'BindI' from assembly 'TaskBuilder.fs #19

Open forki opened 6 years ago

forki commented 6 years ago
Functions.StartTransaction. Microsoft.Azure.WebJobs.Script: One or more errors occurred. (Could not load type 'BindI' from assembly 'TaskBuilder.fs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.). StartTransaction: Could not load type 'BindI' from assembly 'TaskBuilder.fs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

I get this error message when using TaskBuilder.fs prerelease on azure functions.

/cc @gusty @dsyme

gusty commented 6 years ago

I tried including the source code of TaskBuilder in an .fs file and seems to work, but it doesn't recognize the isNull functions, had to change them. Maybe is not using latest FSharp.Core.

Note: I'm not familiar with F# Azure Functions, just started playing with it, in order to reproduce this issue.

forki commented 6 years ago

The problem is that you can't decide which fsharp.core you want to use. Azure functions don't support binding redirects and they ship their own versions. I strongly advocate for TaskBuilder.fs to use a lower fsharp.core.

Gustavo Leon notifications@github.com schrieb am Mo., 9. Apr. 2018, 23:54:

I tried including the source code of TaskBuilder in an .fs file and seems to work, but it doesn't recognize the isNull functions, had to change them. Maybe is not using latest FSharp.Core.

Note: I'm not familiar with F# Azure Functions, just started playing with it, in order to reproduce this issue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rspeele/TaskBuilder.fs/issues/19#issuecomment-379906033, or mute the thread https://github.com/notifications/unsubscribe-auth/AADgNIbS2NfOw-QDYmf-Wn8Y2jWloTWuks5tm9ihgaJpZM4TMDDN .

rspeele commented 6 years ago

I was going to target a lower FSharp.Core in the latest release, but the lowest I could get to while still using .NET Standard 1.6 was v4.1.17. Not wanting to screw with the other dependency versions, I left it there.