Finding Reference to System.IO.FileSystem.Watcher.

2019-07-23 05:38发布

问题:

I have a Xamarin Forms cross platform solution. When I build the solution, the iOS project can't resolve the reference: C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework/Xamarin.iOS/v1.0/Facades/System.IO.FileSystem.Watcher.dll even though it is physically there. All the other projects build just fine.

I can't find a reference to the DLL or the class anywhere in the solution files. I don't need the capability.

Ideas? Thanks.

回答1:

I had the exact same issue. I found out that the issue happened because of different versions of Xamarin.iOS on my development and mac machine. By updating Xamarin through Xamarin Studio, the problem was solved.

Source: Xamarin Forums