0
votes

I am using google analytics tracker in my windows phone app. Below is the nuget link

https://www.nuget.org/packages/GoogleAnalyticsTracker.WindowsPhone/

If I build solution I am getting this error

type 'System.Threading.Tasks.Task' exists in both 'f:\Working\Tel - new\packages\System.Threading.Tasks.2.1.2\lib\sl4-wp71\System.Threading.Tasks.WP71.dll' and 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.0\mscorlib.dll'

How should I resolve this error?

1
Try to remove reference to "System.Threading.Tasks.WP71".. your project is WP8 isn't it?har07
Yes, WP8. If I remove that dll than code breaks on analytics execution.mayank.karki

1 Answers

1
votes

Install newer GoogleAnalyticsTracker.WP8 package for Windows Phone 8 project, instead of legacy GoogleAnalyticsTracker.WindowsPhone. As suggested in the Nuget page you linked in question :

LEGACY PACKAGE - Use GoogleAnalyticsTracker.WP7 or GoogleAnalyticsTRacker.WP8 instead - .... [GoogleAnalyticsTracker.WindowsPhone]