Fody: The weaver assembly 'PropertyChanged.Fody' references an out of date version of Mono.Cecil.dll.
Closed this issue · 1 comments
Hi there,
I'm having an issue building my .NET Core xUnit test library from the command line with dotnet build
and I was wondering if it's something I'm doing incorrectly or an issue with PropertyChanged.Fody.
The full error message I'm getting is:
MSBUILD : error : Fody: The weaver assembly 'PropertyChanged.Fody, Version=2.5.9.0,
Culture=neutral, PublicKeyToken=null' references an out of date version of Mono.Cecil.dll.
Expected strong name token of '50-CE-BF-1C-CE-B9-D0-5E' but got
'1C-A0-91-87-7D-12-CA-03'. The weaver needs to update to at least version 3.0 of FodyHelpers.
It's a Xamarin solution with the following structure:
.sln
---.csproj (.NET Standard 2.0 Library, my cross platform library, references PropertyChanged.Fody)
---.csproj (.NET Core xUnit Test Project)
--- others, not important
if I navigate to the test library folder and execute the command dotnet build
(or dotnet test
) I get the above error.
dotnet --version
returns 2.1.302
Fody version: 3.1.3
PropertyChanged.Fody version: 2.5.9
Anyone have any advice on how I can fix that?
as it says in the issue template:
- Uploaded a minimal solution that reproduces the problem with the fewest moving pieces. Preferably a public GitHub repository.
- Submitted a PR (https://help.github.com/articles/about-pull-requests/) with a failing unit test.
- Submitted a PR (https://help.github.com/articles/about-pull-requests/) with a fix.