Copied to clipboard

Flag this post as spam?

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


  • AmandaEly 123 posts 379 karma points
    Oct 14, 2015 @ 12:30
    AmandaEly
    0

    Attempted uprgade to 7.3 foiled by Automapper

    Hi,

    I have looked at various threads about this issue and am note sure there is a resolution. I like to upgrade to new versions of Umbraco when I can, as I hope there will be bugfixes. I have replaced a newer version of AutoMapper in my project by version 3.3.0 (as recommended) , have closed and re-opened Visual Studio but still cannot upgrade. I still get the same error message: 'Error: already referencing a newer version of AutoMapper'

    I can't find this reference anywhere in my code, if it exists. How have other people managed to upgrade to version 7.3?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Oct 14, 2015 @ 12:43
    Jeroen Breuer
    0

    Hello,

    You can't use a newer version of Automapper on Umbraco 7.3. Read these tweets: https://twitter.com/j_breuer/status/641722642706337792

    Jeroen

  • AmandaEly 123 posts 379 karma points
    Oct 14, 2015 @ 13:24
    AmandaEly
    0

    I know that. That is what I mean. So how do I roll back to a previous version of AutoMapper so that I can at least upgrade Umbraco? This is what I am failing at.

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Oct 14, 2015 @ 21:50
    Sebastiaan Janssen
    0

    You should be able to run Uninstall-Package AutoMapper -Force before you do an Update-Package. The Umbraco NuGet will then require AutoMapper (of the correct version) and should install it again.

  • AmandaEly 123 posts 379 karma points
    Oct 15, 2015 @ 10:36
    AmandaEly
    0

    This approach is fairly close to what I attempted yesterday. And I agree, it may work. It's a bit fiddly though, isn't it? I have reverted to AutoMapper 3.3.1, so I can still run my website. I think you need to reconsider allowing different (more recent) versions of AutoMapper with your releases.

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Oct 15, 2015 @ 12:02
    Sebastiaan Janssen
    0

    We tried this @AmandaEly and it broke loads and loads of things because the AutoMapper people accidentally broke something on their newer versions. We'll upgrade it in v8. ( http://issues.umbraco.org/issue/U4-6923 )

  • AmandaEly 123 posts 379 karma points
    Oct 15, 2015 @ 12:37
    AmandaEly
    0

    Yes. This still leaves me unable to upgrade. I'm not even sure why I needed 3.3.1 anyway. But changing it is tricky. Really not just a question of click on nuget and it "just works". I was looking forward to this version.

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Oct 15, 2015 @ 12:38
    Sebastiaan Janssen
    0

    Have you uninstalled AutoMapper as per my suggestion above and then done an Update-Package UmbracoCms?

  • AmandaEly 123 posts 379 karma points
    Oct 15, 2015 @ 12:41
    AmandaEly
    0

    Not yet. I did try to do that in a slightly different way yesterday and got nowhere. I agree, your way might work better but in the meantime, I would rather just work, Sorry.

    If it would help you to have more feedback, I'll try it next week.

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Oct 15, 2015 @ 12:52
    Sebastiaan Janssen
    0

    Alright, well you can try that and you probably will need to change whatever is requiring the new version of AutoMapper in the rest of your code.

    Anyway, you won't be able to upgrade until you try this so if that's not a priority that's absolutely fine of course.

  • AmandaEly 123 posts 379 karma points
    Oct 15, 2015 @ 13:02
    AmandaEly
    0

    Umbraco requires AutoMapper anyway. It's all a bit circular.

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Oct 15, 2015 @ 13:04
    Sebastiaan Janssen
    0

    Okay, maybe you misunderstood: my suggestion to uninstall it is so that you can upgrade, which will then install the correct, umbraco-compatible version again.

Please Sign in or register to post replies

Write your reply to:

Draft