Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skipping Options and setting ToStringFromat breaks code generation #33

Closed
slimshader opened this issue Sep 26, 2023 · 1 comment
Closed

Comments

@slimshader
Copy link

Hi,

when a struct is defined like this:

[UnitOf(typeof(string),  ToStringFormat = "null")]
public partial struct ProjectId

meaing it skips Options paramater, then no code is generated for the rest of the partial type, fix is to explicitly define options as None:

[UnitOf(typeof(string), UnitGenerateOptions.None, ToStringFormat = "null")]
public partial struct ProjectId
@hadashiA
Copy link
Contributor

Thanks for the report!
Fixed in #34.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants