Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
You can't use a newer version of Automapper on Umbraco 7.3. Read these tweets: https://twitter.com/j_breuer/status/641722642706337792
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.
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.
Uninstall-Package AutoMapper -Force
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.
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 )
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.
Have you uninstalled AutoMapper as per my suggestion above and then done an Update-Package UmbracoCms?
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.
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.
Umbraco requires AutoMapper anyway. It's all a bit circular.
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.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted