Error of ambiguity after changing resource (ASP.NET)

1

I'm working on an ASP.NET MVC project for months. It is a system available in English and Portuguese, with English being the default language. I do this through the use of Resources, and it worked fine, see image below.

However,nowwhentryingtoaddanewStringinTranslation.resx,compilinggivesclassambiguityerrors.

  

Thenamespace'VolunteerGames.Web.Translations'alreadycontainsa  definitionfor'Translation'

and

  

Ambiguitybetween  'VolunteerGames.Web.Translations.Translation.ResourceManager'and  'VolunteerGames.Web.Translations.Translation.ResourceManager'

Inoticedthatafterinsertingthisnewstring,visualstudiocreatedanotherfilecalledTranslation1.Designer.cs.ThisfilealsohasaclasscalledTranslation.

So if I delete this new created file, I can compile it, but the new string-resource I created is not found when I try to use it in the controller.

Any idea of what might have happened or is happening that is creating this Translation1.Designer.cs file giving ambiguity?

    
asked by anonymous 16.06.2016 / 14:02

1 answer

0

As said by Visual Studio, I created the Translation1.Designer.cs file and it was confusing like Translation.Designer.cs . I erased this Translation1, but it gave compilation error and missed the changes. So I deleted the Translation.Designer.cs and everything was resolved.

    
17.06.2016 / 17:53