U4-8213 - Upgrade MiniProfiler dependencies for UmbracoCMS.Core

Created by Sergi Gisbert 19 Mar 2016, 17:51:31 Updated by Gareth Evans 22 Aug 2018, 05:32:04

Duplicates: U4-5071

I'm currently with Umbraco 7.2.8, and I'm using MiniProfiler v3.1.1 as part of my solution. While trying to upgrade the Nuget package, I'm getting an error because UmbracoCMS.Core has a dependency on an older MIniProfiler package:

MiniProfiler (>= 2.1.0 && < 3.0.0)

So it fails, and I cannot upgrade Umbraco to its latest version. I am about to start some new features on this project, so I wanted to be running latest, but I just can't.

I currently cannot downgrade my MiniProfiler version, as it's being used by other custom packages, and, honestly, also don't want to keep old code, when newer versions are available.

Is there any chance you upgrade the dependencies for Core package to the latest version of MiniProfiler ( Or at least the Any reason you can't do it?

Many thanks, Sergi


Sebastiaan Janssen 19 Mar 2016, 19:02:04

We cannot, it has breaking changes, updating it leads to the following error: Method not found: 'StackExchange.Profiling.MiniProfiler StackExchange.Profiling.MiniProfiler.Start(StackExchange.Profiling.ProfileLevel)'.

It will be upgraded in v8.

Sebastiaan Janssen 19 Mar 2016, 19:04:00

You could try to run both versions, sticking the v3 version you need in a subdirectory in your bin folder and adding assembly redirects in your web.config.

Sergi Gisbert 19 Mar 2016, 23:26:06

Thanks for your answer, @sebastiaan. Unfortunately, we are using other nuget packages that depend on the newer version of miniprofiler, so I just can't uninstall it. I guess we'll stick to this version by now...

Gareth Evans 22 Aug 2018, 05:32:04

Related - I have application code which uses EF6 as part of an Umbraco solution, so needed Miniprofiler.EF6 as part of an Umbraco build https://github.com/MiniProfiler/dotnet/issues/320

Priority: Normal

Type: Bug

State: Duplicate


Difficulty: Normal

Category: Installation

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.4.2

Due in version:


Story Points: