-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Xamarin.Forms android can not resolve reference: System.Diagnostics.PerformanceCounter
, referenced by StackExchange.Redis
#1442
Comments
I have the same issue. Adding NuGet package doesn't solve anything [UPDATE] Most probably this is correlated with nuget package reference and this bug especially: dotnet/android#2674 Going back to packages.config fix the issue (i just read it - i will right now try it;) ) |
Tried install both of packages in shared and droid projects. Placed packages.config with reference on PerfomanceCounter in root of droid project. Nothing worked. How to fix this issue? Does redis unusable with forms? |
See pullrequest #1702 |
@mgravell Would it be possible to remove the reference to the performance counter based on @SouJack PR for MonoAndroid10 and Xamarin.iOS10 (cfr. https://docs.microsoft.com/nl-be/xamarin/cross-platform/app-fundamentals/nuget-manual) to be able to use these within Xamarin Forms and Xamarin Native projects. |
Is there a TFM that Xamarin and monodroid would pick up, more specific than
the current TFMs? Adding a TFM is a practical option.
…On Mon, 29 Mar 2021, 14:05 stijn.huygh, ***@***.***> wrote:
@mgravell <https://github.com/mgravell> Would it be possible to remove
the reference to the performance counter based on @SouJack
<https://github.com/SouJack> PR for MonoAndroid10 and Xamarin.iOS10 (cfr.
https://docs.microsoft.com/nl-be/xamarin/cross-platform/app-fundamentals/nuget-manual)
to be able to use these within Xamarin Forms and Xamarin Native projects.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1442 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAEHMBJV72MXBWDM5FGBTTTGCCMBANCNFSM4MN7NAUA>
.
|
MonoAndroid10 and Xamarin.iOS10 are the TFM targeting Android 1.0 + and IOS 1.0+ (e.g. AzureAD also uses multi targeting to remove a certain part of the API for Android and IOS) |
Any update on this issue please, Is it possible to use StackExchange.Redis with Xamarin.Forms apps? |
I am going to look at what is involved in using those TFMs in terms of
build servers etc; but no, it isn't "done" yet. Probably look Tuesday (long
family weekend).
…On Fri, 2 Apr 2021, 17:17 AmmarSaleh45, ***@***.***> wrote:
Any update on this issue please, Is it possible to use StackExchange.Redis
with Xamarin.Forms apps?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1442 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAEHMHFJOEDZ4UVUDSQV3TTGXU2PANCNFSM4MN7NAUA>
.
|
I'm also looking to use StackExchange.Redis with Xamarin.Forms app. Any update on this one please? |
I'm looking at TFMs since adding |
Can anyone here chime in on if such TFMs would be useful? If so we could add and conditional the reference but it adds maintenance so I'd like to see if we're actually solving a problem still :) |
I'm going to close this out since there doesn't seem to be a current need. If the above new TFMs do help someone I'm wide open to adding them, but with no responses I'm reading that this isn't a current issue or at least a pressing one at not worth adding. |
Hi,
I have a Xamarin.Forms.Droid build problem:
Severity Code Description Project File Line Suppression State
Error Can not resolve reference:
System.Diagnostics.PerformanceCounter
, referenced byStackExchange.Redis
. Please add a NuGet package or assembly reference forSystem.Diagnostics.PerformanceCounter
, or remove the reference toStackExchange.Redis
. Xamarin.Sample.AndroidI also tried to include System.Diagnostics.PerformanceCounter package:
Is it possible to use StackExchange.Redis with Xamarin.Forms apps?
Thank you, Tomas
The text was updated successfully, but these errors were encountered: