Comments (5)
The project does not support .net 4 because of the lack of async support there.
from csharpanalytics.
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.
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);
- Add this class to your project http://referencesource.microsoft.com/#mscorlib/system/reflection/CustomAttributeExtensions.cs
- rename GetPropertyInfo to GetType
from csharpanalytics.
2 and 3 make sense - but 1 does not.
I think for 4 you meant GetTypeInfo to GetType?
from csharpanalytics.
- 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));
from csharpanalytics.
Related Issues (20)
- GetEntryAssembly vs GetExecutingAssembly HOT 2
- ASP.NET support HOT 13
- Build break because of requestUri.ShouldUsePostForRequest() HOT 1
- Exception HOT 6
- Assembly.GetEntryAssembly can be null and causes crashes. HOT 3
- Windows Phone 8.1 Support HOT 1
- Prior requests cause null exception in BaseAutoMeasurement::Request HOT 1
- Exception on Start() HOT 8
- Starting multiple instances of a WPF application at same time throws Exception in Start()
- Add a flag AutoMeasurement.Initialized HOT 6
- Make internal classes public HOT 1
- TrackEvent exchange parameters action and category HOT 1
- Allow to use GA debug URL
- MeasurementAnalyticsClient.AdjustUriBeforeRequest cuts strings with special chars HOT 2
- Setting SetOptOut before Start causes crash
- At one of my testing machines I get an deserializing error
- Session start and session end time stamps registered at GA are very often too late relative to other events HOT 3
- proxy support HOT 1
- Unhandled Exception HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csharpanalytics.