AttackPattern / CSharpAnalytics

Google Analytics for Windows 8, Windows Phone & desktop applications
142 stars 36 forks source link

Nuget and Winforms solution #19

Closed Cocotteseb closed 9 years ago

Cocotteseb commented 10 years ago

Hi Damien,

The NuGet package seems to miss the Winforms project, it does install only the dll for net45 and so CSharpAnalytics.AutoMeasurement, and others cannot be used. Building from the sources and using the CSharpAnalytics.WinForms project is working fine. Can you correct the NuGet package ?

Thanks in advance.

damieng commented 10 years ago

The problem is that NuGet does not provide an option to only include assemblies in WinForms or WPF projects - it is at platform level. If we include the WinForm in the primary NuGet package then anyone using it on any .NET 4.5 system would now find a WinForms dependency whether they were using it or not.

The only option here as far as I know would be to create a CSharpAnalytics.WinForms NuGet package just for that environment.

[)amien

Cocotteseb commented 10 years ago

Yes, you're right indeed. I didn't thought to that and I better understand I've already seen specific Winforms or Wpf nuget packages. From what I've seen I didn't find another solution. Your solution seems to be nice (we could maybe make one specific package for WPF so there would be no more mistake, like me ;)) Do you think you can/you would like to do it ?

damieng commented 10 years ago

I'd like to put a WinForms version up but I'd feel a bit more comfortable once it's seen a bit more usage as it's quite new. You should be able to use it simply by checking out the source code and referencing the CSharpAnalytics.WinForms.csproj from your application.

Would be great to get another pair of eyes on it and trying it.

damieng commented 9 years ago

This will be included in the .NET45 NuGet package in the next release.