You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support WPF .NET 4.0 Client Profile applications #45
Yes I looked up the sources. I personally use the Microsoft.Bcl.Async package inside a .net 4.0 client application with great success! But I will try to make my own working .net 4.0 client CSharpAnalytics assemblies with help of Blc package. I will keep you up to date with my progress!
Ok. I was able to create compiling sources targeting .net 4 client profile. I am very new to this lib so I cannot say if every feature is working. I just added the standard "WpfAutoMeasurement" to my application. ;)
Steps I made to downgrade CSharpAnalytics to .net 4.0 client profile:
MeasurementActivity should inherit from : System.EventArgs
Add the Microsoft.Blc.Async package and rename Task.FromResult(true); to TaskEx.FromResult(true);
If I remove : System.EventArgs I get an compile error at MeasurementAnalyticsClient at line 30
public event EventHandler OnTrack = delegate { };
Yes sorry, you are right!
I also remember to have changed something in the HttpWebRequester in line 74
var postRequest = (HttpWebRequest)System.Net.WebRequest.Create((uriWithoutQuery));
Activity
damieng commentedon Mar 8, 2016
The project does not support .net 4 because of the lack of async support there.
AndreasSchmid1 commentedon Mar 8, 2016
Yes I looked up the sources. I personally use the Microsoft.Bcl.Async package inside a .net 4.0 client application with great success! But I will try to make my own working .net 4.0 client CSharpAnalytics assemblies with help of Blc package. I will keep you up to date with my progress!
AndreasSchmid1 commentedon Mar 8, 2016
Ok. I was able to create compiling sources targeting .net 4 client profile. I am very new to this lib so I cannot say if every feature is working. I just added the standard "WpfAutoMeasurement" to my application. ;)
Steps I made to downgrade CSharpAnalytics to .net 4.0 client profile:
damieng commentedon Mar 8, 2016
2 and 3 make sense - but 1 does not.
I think for 4 you meant GetTypeInfo to GetType?
AndreasSchmid1 commentedon Mar 9, 2016
public event EventHandler OnTrack = delegate { };
var postRequest = (HttpWebRequest)System.Net.WebRequest.Create((uriWithoutQuery));