Fody is only supported on MSBuild 16 and above. Current version: 15
Asked Answered
P

3

57

Visual Studio 2017 let me know there was an upgrade to Fody version 5 this morning. I accepted and did a NuGet package update of both Fody and PropertyChanged.Fody.

Now, my project/solution will no longer build.

The error is:

"Fody is only supported on MSBuild 16 and above. Current version: 15."

I tried uninstalling, shutting down VS, and reinstalling to no avail.

Pergola answered 22/4, 2019 at 14:2 Comment(2)
Roll back to the previous nuget package version?Marathon
github.com/Fody/Fody/issues/679Marathon
D
94

Please downgrade Fody to version 4.2.1.

Dorsum answered 25/4, 2019 at 7:26 Comment(5)
What is the last version of Fody supporting Visual Studio 2017?Pasha
In my case I had to downgrade PropertyChanged.Fody nuget from 3.0.1 to 2.6.1Leannleanna
If you use ReactiveUI, downgrade ReactiveUI.Fody to version 9.13.1. If you have VS17 15.9 or later, you can use this line in your csproj to lock the version: <PackageReference Include="ReactiveUI.Fody" Version="[9.13.1]" />Complain
Although not as relevant, I came here because I was using Costura.Fody in a new csproj application. Version 4.1.0 automatically uses Fody 6, but downgrading Costura.Fody to 3.3.3 worked for me.Pelvic
If you're using Costura.Fody the last version compatible with 4.2.1 is 3.3.3Toni
S
6

For what it's worth - I ran into the same situation. A colleague added Fody with no other reason than to reduce the number of files created upon building.

Rather than deal with downgrading plugin versions or upgrading VS2017 to VS2019, I removed Fody from the project (as it had no real added value in the project).

Stringent answered 9/8, 2019 at 13:50 Comment(4)
I disagree with who-ever down-voted this: if you have a standard build environment, then if someone breaks the build by installing something that requires a VS upgrade, then the correct thing IS to remove the offending package... (until your standard build environment can be upgraded, of course).Lil
yep. "to reduce the number of files created upon building" is not enough of a reason to take a dependency like FodyBurley
All the time we spend trying to fix problems with build/Devops because Fody is much much times superior to time supposed saved in development. I don't recommend to use it.Undercast
another reason: It is expected that all developers become PatronsGendarmerie
B
4

Upgrade to Visual Studio 2019 https://visualstudio.microsoft.com/downloads/

Burley answered 27/4, 2019 at 12:18 Comment(9)
It helps, but can I upgrade MSBuild only?Manno
@StanislavPechezerov not that i know ofBurley
Who upgrades a VS version costing huge money just for a plugin?Bename
@Bename i agree. you should probably not use FodyBurley
@Bename visual studio Community edition is for freePeeples
I did. I was already on vstudio 2019. There is ANOTHER scenario leading to this problem, and I haven't figured out what.Macmacabre
@Macmacabre raise an issue on github and ensure you follow the issue template github.com/Fody/Fody/issues/new?template=bug_report.mdBurley
I was able to resolve but thank you. Had to run a nuget restore on solution level to resolveMacmacabre
Who upgrades a VS version costing huge money just for a plugin? Depends on the plugin and it's importance to the project requirements.Althaalthea

© 2022 - 2024 — McMap. All rights reserved.