I have a base xforms project and while attempting to use System.Data.SqlClient.SqlConnection I get these two compile errors.
Error CS7069 Reference to type 'Component' claims it is defined in 'System', but it could not be found
Error CS7069 Reference to type 'ICloneable' claims it is defined in 'mscorlib', but it could not be found
Answers
Hi @DreamC0der I think this reference that you want add, it's not allowed in a Xamarin Forms project. If you want implement database services I recomend use SQLite here have a good sample. https://developer.xamarin.com/guides/cross-platform/application_fundamentals/data/part_3_using_sqlite_orm/
The wiki says its implemented in at least the normal references, but doesn't say one way or another in pcl. And I need it to be exactly using an sql connection to a remote database for what I am using it for. I am not using it for local storage, but instead with a compile time t4 template.
Hi @DreamC0der, I'm getting the same error and same as you I need to connect to a remote database using a sql connection (not throught webservices in between). How you finally solved your problem? Thank you ;-)