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

Add options to Mapster.Tool to generate files with #nullable directives #530

Merged
merged 2 commits into from
Jan 29, 2023
Merged

Conversation

kescherCode
Copy link
Contributor

Fixes #337 for Mapster.Tool

This allows to add "--nullableDirective" to the options already set within a given csproj file to add an #nullable enable, in order to suppress CS8669 warnings that are raised specifically due to generated source files having to add this directive even if a project has Nullable enabled.

@andrerav
Copy link
Contributor

Hi @kescherCode, thank you for contributing this, this has been requested a few times now so I think you will make a lot of people happy :) Would you consider adding a short form option as well? The obvious choice (-n) is already taken, but perhaps -N will work?

@andrerav andrerav self-assigned this Jan 29, 2023
@andrerav
Copy link
Contributor

Awesome, thanks!

@andrerav andrerav merged commit 54f075f into MapsterMapper:master Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include #nullable enable to generated files
2 participants