Open zxhelenxz opened 1 year ago
Using F# has a quirk: Orleans relies on code generation and emits C# code. It supports analyzing F# code (eg, with handling for sum types), but relies on having the C# build chain.
To make it work, you need to add a dummy C# project and add this directive to it: https://github.com/dotnet/samples/blob/d9b8db3ccbfc543dcd092a898c5fe3feb1f3e354/orleans/FSharpHelloWorld/HelloWorld/Program.cs#L8
Practically, this requires separating your application so that you can have a C# project which references your F# project.
@ReubenBond Thank you! I had run into that sample project before but was confused why there was csharp in that.
So the rule of thumb is the Orleans actual runner (Console, windows service, webapi, etc) must be written in C# and consumes grain and core logic in an F# library project right?
Hi, I was following the Quick Start tutorial on Orleans using F# and I ran into this exception This is the link to the tutorial https://learn.microsoft.com/en-us/dotnet/orleans/quickstarts/build-your-first-orleans-app?tabs=visual-studio
Please help me with this. Thank you!