You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1>Orleans.CodeGenerator - command-line = SourceToSource C:\Repos\src\server\Abstractions\obj\Debug\net6.0\Abstractions.orleans.g.args.txt
1>EXEC : warning : attempted to get TypeSyntax for unknown (error) type, "LocationInfo". Possible reason: None. Possible candidates:
1>EXEC : warning : attempted to get TypeSyntax for unknown (error) type, "LocationInfo". Possible reason: None. Possible candidates:
1>EXEC : warning : attempted to get TypeSyntax for unknown (error) type, "LocationInfo". Possible reason: None. Possible candidates:
1>EXEC : warning : attempted to get TypeSyntax for unknown (error) type, "LocationInfo". Possible reason: None. Possible candidates:
1>C:\Repos\src\server\Abstractions\obj\Debug\net6.0\Abstractions.orleans.g.cs(102,45,102,57): error CS0246: The type or namespace name 'LocationInfo' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Repos\src\server\Abstractions\obj\Debug\net6.0\Abstractions.orleans.g.cs(102,118,102,138): error CS0539: 'OrleansCodeGenLocationGrainReference.GetLocationInfoAsync()' in explicit interface declaration is not found among members of the interface that can be implemented
1>C:\Repos\src\server\Abstractions\obj\Debug\net6.0\Abstractions.orleans.g.cs(107,117,107,129): error CS0246: The type or namespace name 'LocationInfo' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Repos\src\server\Abstractions\obj\Debug\net6.0\Abstractions.orleans.g.cs(107,104,107,116): error CS0539: 'OrleansCodeGenLocationGrainReference.SetInfoAsync(LocationInfo)' in explicit interface declaration is not found among members of the interface that can be implemented
1>C:\Repos\src\server\Abstractions\obj\Debug\net6.0\Abstractions.orleans.g.cs(57,99,57,157): error CS0535: 'OrleansCodeGenLocationGrainReference' does not implement interface member 'ILocationGrain.GetLocationInfoAsync()'
1>C:\Repos\src\server\Abstractions\obj\Debug\net6.0\Abstractions.orleans.g.cs(57,99,57,157): error CS0535: 'OrleansCodeGenLocationGrainReference' does not implement interface member 'ILocationGrain.SetInfoAsync(LocationInfo)'
1>Done building project "Abstractions.csproj" -- FAILED.
The above errors go away if I change LocationInfo to a class rather than a record. In new projects, I prefer for my POCO objects to be records instead of classes so that they can take advantage of the build in immutablity and value equals. Please fix.
The text was updated successfully, but these errors were encountered:
Using this basic grain:
The code gen fails with these errors:
The above errors go away if I change
LocationInfo
to a class rather than a record. In new projects, I prefer for my POCO objects to be records instead of classes so that they can take advantage of the build in immutablity and value equals. Please fix.The text was updated successfully, but these errors were encountered: