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

Error rendering template ... if enum is type of long #249

Open
ashamandava opened this issue Jan 16, 2018 · 2 comments
Open

Error rendering template ... if enum is type of long #249

ashamandava opened this issue Jan 16, 2018 · 2 comments
Milestone

Comments

@ashamandava
Copy link

Hi,

I am trying to use type writer in my project where i have lot of enums with type long.
Type writer throwing error "Error: 1099511627776 is not a valid value for Int32"
Is there anyway i can reder long typed enums also? please let me know.

Thank you,
Asha Mandava

@frhagn
Copy link
Owner

frhagn commented Jan 16, 2018

Hi @ashamandava,
This is fixed in Typewriter 1.18.0, could you please verify that it resolves your issue. Thanks

@ashamandava
Copy link
Author

Hi @frhagn,
Thanks for the update, it is working now.
I have one more question.. can we convert enums in other project which are added via references(not in solution just added dll as reference).
Tried the below but no luck..
${
Template(Settings settings)
{
settings
.IncludeCurrentProject()
.IncludeReferencedProjects();
}
}

module TypeWriter.Templates {

$Enums(*)[
export enum $Name {$Values[
    $Name = $Value,]
}
] 

}

Thanks,
Asha Mandava

@frhagn frhagn added this to the v2.0 milestone Apr 24, 2019
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