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

Symptom The CS0433 problem occurs when DomainServiceFault is used in version 5.4.0 #442

Closed 2908411009 closed 2 months ago

2908411009 commented 9 months ago

Describe the bug Use version 5.4.0 in. NET 6.0 environment, CS0433 problem, regenerate solution is not effective

image

image

2908411009 commented 9 months ago

Through NuGet install OpenRiaServices. Client. Core: 5.4.0 package

SandstromErik commented 9 months ago

I have been able to recreate it and will look more into the problem

Daniel-Svensson commented 9 months ago

Are you using net6.0 or net6.0-windows as target framework?

Some thoughts

Possible workaround?

Daniel-Svensson commented 8 months ago

@2908411009

The FaultContract attribute which you have problem with should not be generated by the codegen by default since it is not needed. Here is output from "SimpleWPF" codegen in Samples repo image

  1. Are you using the 5.4.0 codegen nuget?
    • If not make sure you to update and try again
  2. Do you happen to be manually adding the "FaultContract" attribute to your DomainServices ?
    • It should not be needed so you can remove them and resolve the issue
Daniel-Svensson commented 2 months ago

closing since no reply since october, feel free to reply and reopen with requested details