Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mattias Thurgren 4 posts 74 karma points
    Apr 12, 2016 @ 09:14
    Mattias Thurgren
    0

    Duplicate PureLiveAssembly, PublishedContentModel, etc

    Hey guys.

    My team are just getting started to use Umbraco. Note; We are new to umbraco.

    I cannot compile the project. I get alot of duplicate issues like:

    • Severity Code Description Project File Line Suppression State Error CS0579 Duplicate 'PureLiveAssembly' attribute

    • Active Error CS0579 Duplicate 'System.Reflection.AssemblyVersion' attribute

    • Active Error CS0579 Duplicate 'PublishedContentModel' attribute

    The list continues..

    We have also tried to compile this project on his computer, with the same results.

  • Asger 1 post 71 karma points
    Apr 18, 2016 @ 23:15
    Asger
    0

    Hi, I can see that you fixed it. How did you resolve this issue? :)

  • Nicholas Westby 2054 posts 7104 karma points c-trib
    Apr 19, 2016 @ 00:01
    Nicholas Westby
    0

    Try adding this to your web.config:

    <add key="Umbraco.ModelsBuilder.Enable" value="false" />
    <add key="Umbraco.ModelsBuilder.ModelsMode" value="Nothing" />
    

    Those keys may already exist, so you may need to replace them.

    I am recommending this because it appears your are having issues with the models builder, which generates C# classes based on your document types/content types/compositions.

    If you aren't using that feature, you can just turn it off with the above web.config change.

  • Zeeshan Ahmad Khalil 1 post 21 karma points
    Apr 08, 2020 @ 12:19
    Zeeshan Ahmad Khalil
    0

    Those keys are inside Web.config and I made these changes but now I am getting the following error;

    CS0234: The type or namespace name 'Home' does not exist in the namespace 'Umbraco.Web.PublishedContentModels' (are you missing an assembly reference?)

    on the following line of code in cshtml file;

    @inherits Umbraco.Web.Mvc.UmbracoTemplatePage<ContentModels.Home>
    

    It looks like in need to use that feature but if I do I get the same above errors.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies