We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
NuGet Package: Microsoft.CodeAnalysis.ResxSourceGenerator
Version: 3.11.0-beta1.24605.2
Resource name can contain characters which are invalid in C# identifier. Generator does not change them to underscores in Format methods.
Format
Create resource name with invalid characters, for example Name.with.dots. Enable Format methods in project file:
<ItemGroup> <EmbeddedResource Update="**/*.resx"> <EmitFormatMethods>true</EmitFormatMethods> </EmbeddedResource> </ItemGroup>
Format method should have the name FormatName_with_dots
FormatName_with_dots
Format method have the name FormatName.with.dots
FormatName.with.dots
The text was updated successfully, but these errors were encountered:
Fixes dotnet#7536
16b25a0
No branches or pull requests
NuGet Package: Microsoft.CodeAnalysis.ResxSourceGenerator
Version: 3.11.0-beta1.24605.2
Describe the bug
Resource name can contain characters which are invalid in C# identifier. Generator does not change them to underscores in
Format
methods.Steps To Reproduce
Create resource name with invalid characters, for example Name.with.dots. Enable Format methods in project file:
Expected behavior
Format method should have the name
FormatName_with_dots
Actual behavior
Format method have the name
FormatName.with.dots
The text was updated successfully, but these errors were encountered: