OpenRIAServices / OpenRiaServices

The Open RIA Services project continues what was previously known as WCF RIA Services.
https://openriaservices.gitbook.io/openriaservices/
Apache License 2.0
54 stars 47 forks source link

code generation issue #452

Closed ehsangfl closed 6 months ago

ehsangfl commented 8 months ago

Server side : dotnet 7 , ef core 7 Client : dotnet 7, webassembly when I use the code generation, I faced with this error

Daniel-Svensson commented 8 months ago

just curious, does it work if you have a separate "net7.0" library project for the code generation (just as you have to do with WPF )

ehsangfl commented 7 months ago

I create a clean client like your sample but client proxy did not generate. the issue is

The code generator 'OpenRiaServices.Tools.CSharpCodeDomClientCodeGenerator' encountered a fatal exception and could not generate code for the project '*\Model.Client.csproj':
Object reference not set to an instance of an object

Also, it warns me a lot about custom attributes...

Daniel-Svensson commented 7 months ago

Can you provide a small sample application to show the problem.

Note that the 5.4.0 codegen had issues with some attributes including regex (fixed in 5.4.1) when .net 7 or newer is installed.

As for the custom attributes can it be #298 ? i think i wrote some thoughts about how it can be fixed without supressing obsolete warnings.