Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not resolve reference Microsoft.Identity.Client on Xamarin.Forms #1486

Open
m4rkyx opened this issue May 31, 2021 · 4 comments
Open

Can not resolve reference Microsoft.Identity.Client on Xamarin.Forms #1486

m4rkyx opened this issue May 31, 2021 · 4 comments
Labels

Comments

@m4rkyx
Copy link

m4rkyx commented May 31, 2021

When updating from 3.2.15 to 3.2.16 our Xamarin.Forms solution cannot build because of the current error :
Can not resolve reference: Microsoft.Identity.Client, referenced by Microsoft.Data.SqlClient. Please add a NuGet package or assembly reference for Microsoft.Identity.Client, or remove the reference to Microsoft.Data.SqlClient.

Works perfectly with version 3.2.15.
We don't want to add the specified nuget package so we will stick with version 3.2.15.

Information:

  • OS: Windows 10, Android
  • Platform: Net Standard 2.0
  • FluentMigrator version 3.2.16
  • FluentMigrator runner : 3.2.16
  • Database Management System : SQLite
@jzabroski jzabroski added the bug label Jun 11, 2021
@jzabroski
Copy link
Collaborator

There were no SQLite specific features added in 3.2.15 so that should be fine for now. Thanks for reporting this.

I have not built a Xamarin Forms application before. Can you tell me how to set that up? It looks like the Xamarin.Forms Todo app uses SQLite. https://github.com/xamarin/xamarin-forms-samples/tree/main/Todo

Separately, can you tell me what TFM you're using when you say your Xamarin.Forms solution cannot build? Could it be as simple as you have put third party stuff in a specific TFM when it should go in a more general TFM so it can be transitively included?

@m4rkyx
Copy link
Author

m4rkyx commented Jun 17, 2021

I have not built a Xamarin Forms application before. Can you tell me how to set that up? It looks like the Xamarin.Forms Todo app uses SQLite. https://github.com/xamarin/xamarin-forms-samples/tree/main/Todo

Separately, can you tell me what TFM you're using when you say your Xamarin.Forms solution cannot build? Could it be as simple as you have put third party stuff in a specific TFM when it should go in a more general TFM so it can be transitively included?

We're targeting .net standard 2.0 in our solution and we are using the Mono.Data.Sqlite.dll (included with Xamarin SDK) instead of the package sqlite-net-pcl provided in the Xamarin.Forms Todo. Maybe the use of this dll could lead to this error.

@jzabroski
Copy link
Collaborator

@schambers Can you review closing this? Looks like it was a dll incompatibility issue and other people have not had the same experience.

@schambers
Copy link
Member

Will do! I'll get to it later today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants