.resx does not properly generate Design-File
Looking at AspNetCore Identity (or the whole aspnetcore logic), we can see, that their ErrorDescribers access the resource like:
This will result in a generated method with the following:
And allows to call it like a method with a parameter:
When i edit this file with more params like
User is not in role '{0}' ABC: {1}
the generated method will update properly to be generated like internal static string FormatUserNotInRole(object p0, object p1)
.
So now i want to achieve this within my own project. But somehow i couldn´t manage the localization to generate those damn parameters and i have absolutely no clue why. I´ve already set the generator as well as the file.1 Reply
My .csproj looks like:
But the generated code is just