Coder Social home page Coder Social logo

Comments (5)

damieng avatar damieng commented on August 18, 2024

The project does not support .net 4 because of the lack of async support there.

from csharpanalytics.

AndreasSchmid1 avatar AndreasSchmid1 commented on August 18, 2024

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!

from csharpanalytics.

AndreasSchmid1 avatar AndreasSchmid1 commented on August 18, 2024

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:

  1. MeasurementActivity should inherit from : System.EventArgs
  2. Add the Microsoft.Blc.Async package and rename Task.FromResult(true); to TaskEx.FromResult(true);
  3. Add this class to your project http://referencesource.microsoft.com/#mscorlib/system/reflection/CustomAttributeExtensions.cs
  4. rename GetPropertyInfo to GetType

from csharpanalytics.

damieng avatar damieng commented on August 18, 2024

2 and 3 make sense - but 1 does not.

I think for 4 you meant GetTypeInfo to GetType?

from csharpanalytics.

AndreasSchmid1 avatar AndreasSchmid1 commented on August 18, 2024
  1. If I remove : System.EventArgs I get an compile error at MeasurementAnalyticsClient at line 30

public event EventHandler OnTrack = delegate { };

  1. Yes sorry, you are right!
  2. I also remember to have changed something in the HttpWebRequester in line 74
    var postRequest = (HttpWebRequest)System.Net.WebRequest.Create((uriWithoutQuery));

from csharpanalytics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.