Okay
  Print

WoWonder : Visual Studio, Error: “Fody, Unexpected Exception” Unable to parse condition "Exists(@(IntermediateAssembly))"

Question:

I’m using Visual Studio with the latest .NET runtime (5), but I can’t run the app. What configuration should I use? I tried 4.8 but I’m still having problems. What Xamarin & .NET version I need to use to run the project?

If I try to run with latest Visual Studio, .NET Runtime 5, I get the error: “Fody, Unexpected Exception”

Unable to parse condition "Exists(@(IntermediateAssembly))" : Expected an item list at position 8 in condition "Exists(@(IntermediateAssembly))". Missing opening parantheses after the '@'. ---> Microsoft.Build.BuildEngine.ExpressionParseException: Expected an item list at position 8 in condition "Exists(@(IntermediateAssembly))". Missing opening parantheses after the '@'.


There is an error in the Fody.targets file if you are using it in the MAC system. Just replace

Condition="Exists(@(IntermediateAssembly))"

with

Condition="Exists('@(IntermediateAssembly)')"

and it should work again.

Find the file in .../projectfolder/packages/Fody2.x.x/build/netstandard1.4/Fody.targets