Add options to Mapster.Tool to generate files with #nullable directives#530
Merged
andrerav merged 2 commits intoMapsterMapper:masterfrom Jan 29, 2023
kescherCode:master
Merged
Add options to Mapster.Tool to generate files with #nullable directives#530andrerav merged 2 commits intoMapsterMapper:masterfrom kescherCode:master
andrerav merged 2 commits intoMapsterMapper:masterfrom
kescherCode:master
Conversation
Fixes #337 for Mapster.Tool
Member
|
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? |
Member
|
Awesome, thanks! |
This was referenced Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 hasNullableenabled.