Skip to content

Conversation

@janosorcsik
Copy link
Contributor

Hi @ardalis!

If you have two projects A and B, and B has a reference to A.
And A is using the SmartEnum 2.0.1. and B is using the SmartEnum.SystemText.Json 1.0.0., you will get an error:

An unhandled exception has occurred while executing the request.
System.IO.FileLoadException: Could not load file or assembly 'Ardalis.SmartEnum, Version=1.0.11.0, Culture=neutral, PublicKeyToken=null'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
File name: 'Ardalis.SmartEnum, Version=1.0.11.0, Culture=neutral, PublicKeyToken=null'

If you downgrade the SmartEnum to 1.0.11. in A, the project will work again.

So this PR updates the package references to the latest.

@ardalis ardalis merged commit 7ca360b into ardalis:master Apr 18, 2021
@ardalis
Copy link
Owner

ardalis commented Apr 18, 2021

Thanks!

@Yaevh
Copy link
Contributor

Yaevh commented May 4, 2021

Ran into exactly the same problem yesterday. When is this fix scheduled for release?

@janosorcsik
Copy link
Contributor Author

The way I see it we need to upgrade all the SmartEnum sub-packages. Because this problem occurs in the NewtonSoft.Json project also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants