Reputation: 101
I have hit a blocking error after upgrading to Visual Studio 2019 16.6.0 and subsequently upgraded Xamarin.IOS package to 13.4.
Here is the exact error message: Can't resolve the reference 'System.Configuration.ConfigurationException', referenced from the method 'System.Void System.Configuration.ConfigurationErrorsException::.ctor(System.String,System.Exception,System.String,System.Int32)' in 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. HSETicketingMobile.iOS
The app used to build successfully before the upgrade. Is there anything I can do or is it a newly introduced upgrade issue and I have to wait for the fix from Microsoft?
I tried to google the error but I couldn't find any solution.
My visual studio is on Windows and I'm connecting to XCode over the LAN. Thank you
Here is my build log: https://drive.google.com/open?id=1ZwwIZVwWZdge0uleZyPDySfhHczHuXOI
Upvotes: 2
Views: 1023
Reputation: 101
Finally, I found the source of the problem.
I was including System.ComponentModel.DataAnnotations in one of my modules and it was in turn calling System.Configuration.ConfigurationException under the hood.
I added a build condition to exclude the use of the DataAnnotations for my Xamarin.iOS and that solved the problem.
The strange thing is that my code hasn't changed and just upgrading to VS 2019 16.6.0 caused the problem to happen.
I got a hint from this discussion thread here
I hope this helps someone else.
Upvotes: 3