Not long ago, our new project switched to C# language, and start using Microsoft C# distributed actor framework Orleans, but at project very beginning, Orleans 2 have not released the beta or official stable version, but only provided the preview version, and we use it in our project just for quick prototype and evaluated for future waiting for 2.0 official stable version released.
Our project is using .Net core 2.0, now we know that Orleans 2.0-beta version have released, and we upgraded our project from Orleans 2.0-preview version to beta, when we compiled the project, it came out errors like this:
” Cannot find an implementation class for grain interface ….. .net core 2.0 ”
After search I finally found solution to deal with that error, just reference the one of Orleans package to your project:
” Microsoft.Orleans.OrleansCodeGenerator.Build ”
Add below line code in your .csproj file:
<PackageReference Include=”Microsoft.Orleans.OrleansCodeGenerator.Build” Version=”2.0.0-beta2″/>
and compile will be successful.