Skip to main content

Updating MassTransit from version 7.1.5 to 7.2.2

I try to keep the technical debt in my applications under control by keeping the used dependencies up-to-date as much as possible. Everytime I have to make a small change to an application, I reserve some time to update outdated packages. This helps me to avoid big-bang migrations where the risk is high and updating can take a long time.

Today I had to make a small update to an application that was using MassTransit. I used the opportunity to upgrade the application from MassTransit v7.1.5 to v7.2.2 .

After upgrading the NuGet packages, Visual Studio showed the following errors and warnings:

Let’s walk through the steps I took to get rid of them.

First I replaced:

With:

Afterwards I replaced

by:

There was a namespace change, so I had to add an extra using:

Almost there. I also had to replace:

by:

As a final step I could remove the following line: