Autofixture: System.ComponentModel.TypeConverter 4.0.1 was not found

Created on 26 Jun 2018  ·  4Comments  ·  Source: AutoFixture/AutoFixture

Currently, when using AutoFixture.AutoNSubstitute in .NetCore projects, the following warning is shown when building the project:

warning NU1603: Castle.Core 4.0.0 depends on System.ComponentModel.TypeConverter (>= 4.0.1) but System.ComponentModel.TypeConverter 4.0.1 was not found.

The issue has already been fixed in NSubstitute (https://github.com/nsubstitute/NSubstitute/issues/310) so I suppose an upgrade will fix this warning.

question

All 4 comments

Thanks for raising the issue!

Unfortunately, it's very unlikely we could apply this change in the nearby future 😟 This is a breaking change for our clients and we are not allowed to apply those ones in the minor updates as we follow the SemVer. Also usually we are trying to target the lowest possible version for the greater compatibility and do not raise the lower boundary without having a strong reason for that.

I do understand that this issue is quite annoying. To work around it I could offer you the following options:

  • suppress the warning manually like it's done here.
  • explicitly add a reference to a newer version of NSubstitute like here.

Hope that helps! Sorry for the inconvenience 😟

I added an explicit reference to NSubstitute as a workaround. Thanks for your help!

@joelleortiz Thanks for the feedback!

I'm willing to close this issue as I don't consider this compiler warning as a strong enough reason to upgrade the min required version. We might still update the requirement in future if we have another reasons (e.g. we start to use newer API). Are you fine with that?

No problem, closing this issue now.

Thanks for your help!

Was this page helpful?
0 / 5 - 0 ratings