Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin issues with Fody.WeavingTask and SolutionDir

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

like image 261
keitaro martin Avatar asked May 08 '18 03:05

keitaro martin


3 Answers

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

like image 109
keitaro martin Avatar answered Nov 12 '22 11:11

keitaro martin


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

like image 37
Arsman Ahmad Avatar answered Nov 12 '22 11:11

Arsman Ahmad


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.

like image 1
Paramjit Avatar answered Nov 12 '22 10:11

Paramjit