The namespace 'Xxx' already contains a definition for 'Yyy'

May 27, 2013 at 10:50 AM
Hello,

have a problem:
in my views folder:
Views
    Dogs
        DogInfo  <--- folder
            One.cshtml
            AnotherOne.cshtml
        DogInfo.cshtml 
Compilation result:
The namespace 'My.Web.Views' already contains a definition for 'DogInfo'

What will be your suggestion?
Thank you, Roman
Coordinator
May 27, 2013 at 8:40 PM
Try adding @* ClassSuffix: _ *@ at the top of DogInfo.cshtml to get around the conflict.
Jun 11, 2013 at 2:39 PM
Thank you! It helps.