-
-
Notifications
You must be signed in to change notification settings - Fork 45
Description
When running with optional warnings enabled such as <WarnOn>FS3560;..., the following warning shows up in the code generated by the fields generator:
This copy-and-update record expression changes all fields of record type 'Example.Test1'. Consider using the record construction syntax instead. [3560]
When combined with <TreatWarningsAsErrors>true</TreatWarningsAsErrors>, it causes the build to fail, requiring setting <WarningsNotAsErrors>FS3560</WarningsNotAsErrors> or to disable the warning altogether.
Since all fields are updated, is there any reason to use the with syntax, and just provide all fields instead?
If that's tricky for whatever reason, could a nowarn be added to the generated file to silence the warning?
I'm not sure how valuable this warning is, and might disable it altogether, but perhaps other generators would have the same issue, and providing a parameter to disable warnings would make sense as well.