21

I have been trying to use Realm in my Xamarin android proyect, one of it's dependencie is Fody, each time i try to run my app it shows the following error: error MSB4044: The "Fody.WeavingTask" task was not given a value for the required parameter "SolutionDir".

I have been looking for a fix, but can't find it, do you know how to give it a value? where is it?

For the realm nugget package i already created the FodyWeavers.xml

thumbmunkeys
  • 20,606
  • 8
  • 62
  • 110
keitaro martin
  • 837
  • 7
  • 7

3 Answers3

58

uff, that's a bug you just need to close the solution and open it again.

keitaro martin
  • 837
  • 7
  • 7
  • 4
    These are those kinds of Xamarin issues that makes me want to break my keyboard in half. Thank you. – Lance McCarthy May 25 '18 at 19:19
  • 2
    I agree this is very frustrating but this may not be Xamarin-specific. I experienced this with a .NET console application. – nick Mar 11 '19 at 18:29
  • I got bit by this too and the solution wasn't obvious. Wonder if this is reproducible... Would be great to be able to send a bug report to whoever could fix it. – Ehtesh Choudhury Mar 14 '19 at 01:31
  • This is specific to Fody, not Xamarin, I got a similar error ```Fody.weavingtask task was not given a value for the required parameter IntermediateDir``` and restarting the solution fixes the issue – Anastasiosyal Jul 01 '19 at 13:25
  • In my case, it was "IntermediateDir" instead of "SolutionDir" and re-opening the solution did fix the problem. – datchung Nov 18 '19 at 21:04
7

Haahh.., I resolved the same issue by just restarting my solution. ;-)

Arsman Ahmad
  • 2,000
  • 1
  • 26
  • 34
1

I am not sure about the error you are getting. Please check for the following points:

1.The FodyWeavers.xml should be in all projects in your solution and looks like this

 <?xml version="1.0" encoding="utf-8"?>
<Weavers>
   <RealmWeaver/>
</Weavers>

2.As of today the latest realm package ver 3.0.0 is compatible with Fody ver 2.5.0.

Paramjit
  • 760
  • 8
  • 25