Skip to content

Resx FormatXYZ method are generated using truncated value #3244

@JunTaoLuo

Description

@JunTaoLuo

Truncated versions of the resource string are used when generating the FormatXYZ methods and this means that some parameters may be missed. For example:
https://github.com/aspnet/AspNetCore/blob/b647a223f7c95f909aac07cbf25d4665d3365bf8/src/Antiforgery/src/Resources.resx#L121

produced errors like:

Internal\DefaultAntiforgeryTokenGenerator.cs(91,31): error CS1501: No overload for method 'FormatAntiforgeryTokenValidator_AuthenticatedUserWithoutUsername' takes 6 arguments [C:\gh\AspNetCore\src\Antiforgery\src\Microsoft.AspNetCore.Antiforgery.csproj]

when converting to using automatic resx generation.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions