We’ve just released NServiceBus.Unity 8.1.4 and 9.0.1.
- #100 Compiler error on unreferenced assembly after upgrading Unity
How to know if you are affected
You are affected after updating the Unity container package to version 5.9.0 or later.
After updating the Unity container package, the compiler displays the following error:
[CS0012] The type 'IUnityContainer' is defined in an assembly that is not referenced. You must add a reference to assembly 'Unity.Abstractions, Version=220.127.116.11, Culture=neutral, PublicKeyToken=6d32ff45e0ccc69f'.
Should you upgrade immediately
This patch restricts the version range of the Unity container package to exclude versions 5.9.0 and above. We recommend upgrading current development branches immediately, to avoid this issue when updating NuGet package dependencies.
Unity container 5.9.0 contains breaking changes, so in order for NServiceBus to support it, a new version of
NServiceBus.Unity is required. We are currently working on a new version of
NServiceBus.Unity which will support Unity container 5.9.0.
Where to get it
You can download the updated version directly via NuGet: https://www.nuget.org/packages/NServiceBus.Unity/
The team in Particular