Skip to content

Fix: System.Text.Json factories fail to generate if assembly name has hyphens#718

Merged
SteveDunn merged 4 commits intomainfrom
stj-namespace-bug-717
Dec 2, 2024
Merged

Fix: System.Text.Json factories fail to generate if assembly name has hyphens#718
SteveDunn merged 4 commits intomainfrom
stj-namespace-bug-717

Conversation

@SteveDunn
Copy link
Copy Markdown
Owner

Fixes #717

@SteveDunn SteveDunn merged commit 8356bd6 into main Dec 2, 2024
@SteveDunn SteveDunn deleted the stj-namespace-bug-717 branch December 2, 2024 05:47
// the following extension method is available if you specify `GenerateSwashbuckleMappingExtensionMethod` - as shown above

opt.MapVogenTypesInWebApplication();
opt.MapVogenTypesInWebApplicationShared();
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously, if the project named contained dots, then these would be stripped out, but now they're replaced with _. This was part of a bug fix for something else that derived the namespace from the project but failed where the project contained hyphens.

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

Successfully merging this pull request may close these issues.

Vogen generates invalid namespace in SystemTextJsonConverterFactory_g.cs

1 participant