With.Fody icon indicating copy to clipboard operation
With.Fody copied to clipboard

Fails to build, complains of invalid strong name token for Mono.Cecil reference

Open Andycharalambous opened this issue 6 years ago • 5 comments

v0.8 of With.Fody blows up during build with:

Severity Code Description Project File Line Suppression State Error Fody: The weaver assembly 'With.Fody, Version=0.8.0.0, Culture=neutral, PublicKeyToken=null' references an out of date version of Mono.Cecil.dll. Expected strong name token of '1C-A0-91-87-7D-12-CA-03' but got '50-CE-BF-1C-CE-B9-D0-5E'. The weaver needs to update to at least version 3.0 of FodyHelpers.

Checked the references on With.Fody.dll with ILDASM and indeed it references Mono.Cecil with 50-CE-BF-1C-CE-B9-D0-5E public key token. Is there a way around this? Can this please be fixed?

Thanks

Andycharalambous avatar Apr 27 '18 17:04 Andycharalambous

I have the same issue. I believe it's because version 0.8 is not compatible with Fody 3.0. If you install fody 2.X you should be fine.

Ninglin avatar Jul 12 '18 15:07 Ninglin

@mikhailshilkov is this project abandoned?

SuddenGunter avatar Sep 14 '18 12:09 SuddenGunter

@SuddenGunter I never used it with Fody 3.0 and probably won't. Happy to take a PR.

mikhailshilkov avatar Sep 14 '18 12:09 mikhailshilkov

@mikhailshilkov actually, we've found another solution for this case: Remute

SuddenGunter avatar Sep 17 '18 08:09 SuddenGunter

@Andycharalambous @Ninglin @SuddenGunter The project was updated to Fody 5.0. Can you please check the latest version of the NuGet package?

aalmada avatar Jun 17 '19 09:06 aalmada