I have an ASP.NET application that is available in two languages: English by default and Portuguese as second option.
Everything was working good, look this first image:
Then when I try to add or remove a string resource, visual studio starts to give me ambiguity errors when compiling, as those:
The namespace 'VolunteerGames.Web.Translations' already contains a definition for 'Translation'
and
Ambiguity between 'VolunteerGames.Web.Translations.Translation.ResourceManager' and 'VolunteerGames.Web.Translations.Translation.ResourceManager'
I noticed that after changing the resource in designer (Translation.resx) a new file named Translation1.Designer.cs was created. It created another class called Translation. If I delete this new file I can compile, but the new strings I just created are not found when I try to use on my controller.
I can't understand what's going on. I've been working for months in this project and it was all good.
Because Visual Studio started to create the file Translation1.Designer.cs, and that new file conflicted with Translation.Designer.cs, and when I tried to delete it I got erros, then I deleted Translation.Designer.cs so everything is working now again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With