Fody is only supported on MSBuild 16 and above. Cu

2020-05-24 19:44发布

问题:

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.

回答1:

Please downgrade Fody to version 4.2.1.



回答2:

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).



回答3:

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