Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is WPF supported? #620

Closed
pscraire opened this issue Mar 15, 2018 · 75 comments
Closed

Is WPF supported? #620

pscraire opened this issue Mar 15, 2018 · 75 comments

Comments

@pscraire
Copy link

@pscraire pscraire commented Mar 15, 2018

From Visual Studio App center, only UWP application seems to be supported. However, I saw that a merge request to make WPF works have been approved:

#433

So, is there a way to make it works with WPF and, if yes, how? Because if I try I got an error print in the output window:
[AppCenter] ASSERT: Cannot use App Center on this target. If you are on Android or iOS or UWP, you must add the NuGet packages in the Android and iOS and UWP projects as well. Other targets are not yet supported.

@elamalani
Copy link
Contributor

@elamalani elamalani commented Mar 15, 2018

@pscraire We started to work on WPF platform in App Center sometime back, though it's not supported officially. We have a preview NuGet that should work for WPF apps. You can install it in your application from here: https://www.nuget.org/packages/Microsoft.AppCenter/1.0.2-r0004-e44d856

@pscraire
Copy link
Author

@pscraire pscraire commented Mar 16, 2018

Thanks for the link to the unofficial nuget.

It will be great if you can add offical supports to WPF soon!
It's the only thing missing for us to switch our iOS and Windows (WPF) application to Visual Studio App Center.

We are a little bit concern, especially because Xamarin insights will soon be retired... We want to switch all our applications to Visual Studio App Center before others services get retired...

@elamalani
Copy link
Contributor

@elamalani elamalani commented Mar 16, 2018

@pscraire We hear you but App Center is not in full feature compatibility with Xamarin Insights. It's in our backlog to support WPF platform but is not prioritized and surely not in our mid-term roadmap.

What App Center services are you interested to integrate with your WPF app?

@pscraire
Copy link
Author

@pscraire pscraire commented Mar 16, 2018

We are using HockeyApp to manage the different versions of our applications.
We are also using HockeyApp to send crash reports. We didn't use analytics yet but it's something we might use in the future.

Hopefully, HockeyApp won't be retired until App Center is full feature compatible with HockeyApp.

@elamalani
Copy link
Contributor

@elamalani elamalani commented Mar 16, 2018

@pscraire We plan to support Distribute, Analytics, and Crashes services for WPF apps at the minimum. Our aim is to have feature parity with HockeyApp.

@pscraire
Copy link
Author

@pscraire pscraire commented Mar 17, 2018

Good to know, thanks for the follow-up! Can't wait to have those functionnality! Keep the good work!

@pici-masp
Copy link

@pici-masp pici-masp commented Mar 22, 2018

+1 for wpf

@jgasiorowski
Copy link

@jgasiorowski jgasiorowski commented Mar 31, 2018

@elamalani I've just tried that nuget package you linked but it also brings assert error in output console:
[AppCenter] ASSERT: Cannot use App Center on this target. If you are on Android or iOS or UWP, you must add the NuGet packages in the Android and iOS and UWP projects as well. Other targets are not yet supported.
Is there anything more I can do or only waiting for full support?

@elamalani
Copy link
Contributor

@elamalani elamalani commented Mar 31, 2018

@achocron Can you please help @jgasiorowski to fix this issue with WPF NuGet?

@elamalani
Copy link
Contributor

@elamalani elamalani commented Apr 3, 2018

@jgasiorowski Can you enable verbose logging for your application and share the console logs with us:
https://docs.microsoft.com/en-us/appcenter/sdk/other-apis/uwp#adjust-the-log-level

@jgasiorowski
Copy link

@jgasiorowski jgasiorowski commented Apr 3, 2018

@elamalani but are we still talking about WPF?

@guperrot
Copy link
Member

@guperrot guperrot commented Apr 3, 2018

@jgasiorowski WPF has the same public API surface as UWP that's why we shared the documentation link of UWP for adjusting log level.

Please also share your csproj file and the file listing all the nuget dependencies.

@monsdar
Copy link

@monsdar monsdar commented Apr 5, 2018

I just tested it with a sample App and it worked right out of the box. I used the following packages:

I can push the sample app to Github, so everyone else interested in this can have a look. It's currently on another computer, so give me some time.

I also found the following by substituting the URL, but haven't tested the functionality yet:

A few questions regarding this:

  • Is this the newest version available, or are there newer versions also unlisted?
  • What needs to be done in order to release a new version for WPF? Are there major code-changes involved, or is it simply removing the Assert for "Cannot use App Center on this target."?
  • When saying that it's on your roadmap, but in the long-term you would like to support Windows Desktop is this because there are major code changes involved or is this because of secondary reasons like you're currently not able to support this officially?
  • Currently there is no way to Add my WPF-App to AppCenter in order to release it. When uploading it, I get a message that it's not supported. Will there be support for this in the (near?) future?

Thanks a lot for already providing so much details!

@elamalani
Copy link
Contributor

@elamalani elamalani commented Apr 5, 2018

@monsdar To answer your questions, this is the first and only preview WPF NuGet shared by our team so that we can get some early feedback from developers. Please note that since it's a preview NuGet, we haven't completely tested the functionality and right not, it only works as intended for Analytics service. WPF platform support is on our long-term roadmap because App Center has other high priority commitments at this time and we haven't planned active investment for this platform just yet. You cannot add WPF application type in App Center portal since we don't officially support this platform. So you cannot create a WPF application in our portal to get started.

I hope this helps. Please let me know if you have any other question.

@monsdar
Copy link

@monsdar monsdar commented Apr 5, 2018

Don't get me wrong, totally clear that this is just a test release. Just wanted to get a feel on what's going on regarding WPF support.

Looking forward on what comes next, thanks a lot for the answers.

@elamalani
Copy link
Contributor

@elamalani elamalani commented Apr 5, 2018

@monsdar We will keep this thread posted once we plan to work on WPF platform in App Center :)

@jgasiorowski
Copy link

@jgasiorowski jgasiorowski commented Apr 5, 2018

@elamalani @guperrot I did not wanted to waste your time for investigation so I dig a bit into it. I found that those Nuget packages are targeting .NET Framework 4.5.2 at least. Unfortunetelly my client operates on .NET 4.5 and I am unable to force them to update.

So after I tried on my machine with project switched to .NET 4.5.2 then as you described AppCenter Analytics started to work:
[AppCenter] ASSERT: App Center SDK configured successfully.

Is it possible that AppCenter will support lower .NET targets?

@elamalani
Copy link
Contributor

@elamalani elamalani commented Apr 7, 2018

@jgasiorowski Thanks for the update and good to know that your issue is resolved. We should be able to lower the target once we release the next preview version. However, we don't have any short-term plan to make another preview release for WPF.

@ODB88
Copy link

@ODB88 ODB88 commented May 18, 2018

@elamalani Hi, I've been trying to configure AppCenter in my WPF (Targeting 4.5.2) for a few days and a few computers.

Installed the following packages:

And pasted the following code in App.cs

AppCenter.Start("KEY", typeof(Analytics));

However, visual studios keeps saying "Start does not exist in the current context".

I've tried to :

  • Rebuild, Cleand solution
  • Restart VS
  • Reinstall nuget packages
  • Install nuget packages for every project inside the solution

Is there any fix for this?
Thanks

@bmourat
Copy link
Contributor

@bmourat bmourat commented May 21, 2018

Hi @ODB88!

Are there any suspicious messages in the console during packages installation?
What is your solution structure? Are all projects in it targeting NET Framework 4.5.2?
What version of VS are you using?

Best,
Murat

@wjvii
Copy link

@wjvii wjvii commented May 21, 2018

I think support for the same analytics reporting across all project types is important for consistency. I think this is even more important with Microsoft continuing to provide new and improved ways to integrate and use Win32 (including WPF applications) with UWP and to help get apps into the Microsoft Store. It is difficult at best not to have consistency in the tools developers use to collect the analytics of these different platforms, especially when they could be combined into a single Microsoft Store application where you want a single point of monitoring. I would like to vote that this get pushed up in priorities.

@elamalani
Copy link
Contributor

@elamalani elamalani commented May 21, 2018

@wjvii We hear your feedback and will take it into account when deciding on our priorities. Unfortunately, this is not in our mid-term roadmap at the moment.

@tstephansen
Copy link

@tstephansen tstephansen commented Jul 2, 2018

@elamalani I understand from your post above (on 4/7) that you didn't/don't have any plans to release a new preview version for WPF. Will you please let us know when you do update the preview version (even if it isn't anytime soon)? Thank you!

@elamalani
Copy link
Contributor

@elamalani elamalani commented Jul 2, 2018

@tstephansen For sure. We will keep this thread posted once we update the preview version of the NuGet. Also, we won't close this issue for better visibility to all App Center customers.

@lucahost
Copy link

@lucahost lucahost commented Nov 16, 2018

@tstephansen For sure. We will keep this thread posted once we update the preview version of the NuGet. Also, we won't close this issue for better visibility to all App Center customers.

I just got an email "Action recommended: Transition from HockeyApp to Visual Studio App Center"

Is there any progress on this issue?

@Porterbg
Copy link

@Porterbg Porterbg commented Nov 16, 2018

+1 For WPF support.
I can't migrate to App Center because it has no option for wpf apps. Even if it is buggy would be nice if we can have this option.

@elamalani
Copy link
Contributor

@elamalani elamalani commented Nov 16, 2018

@Unlockedluca @Porterbg Thanks for sharing your feedback. We currently don't support WPF platform in App Center. We have a year from today to retire HockeyApp and we will continue to bring additional platform support to App Center over the next year based on all the HockyeApp customer feedback. Please continue using HockeyApp for now.

We'll keep this thread open and let you know once we decide to support WPF platform in App Center.

@brcinho
Copy link

@brcinho brcinho commented Nov 29, 2018

@elamalani What is there to decide? Are you even thinking of not supporting it in the end? If I am not mistaken, Windows desktop OS is the second most widespread platform, it is from Microsoft, and I don't see if there should even be a question that Microsoft's App Center needs to support its own platform. Anyways, be determined and let us know if the support will be there in the end or not so we know whether to explore other services when transitioning from HockeyApp.

@nanderto
Copy link

@nanderto nanderto commented Dec 20, 2018

It looks like HockeyApp was the recommended way to monitor WPF apps but now it is no longer in service. HockeyApp has been shut down, but WPF is not yet supported by its replacement App Center. If you are looking for early feed back from developers, which you say you are earlier in this thread, then I would say stop messing us about. How do I even give feed back when I can't install it and run it in my app and see the monitoring because you don't support it.

@centrolutions
Copy link

@centrolutions centrolutions commented Jul 5, 2019

Is there a supported Nuget for WPF support yet? I attempted to Install-Package Microsoft.AppCenter.Crashes and got a list of dependencies a mile long; none of which should be required for WPF / classic .NET.
We are fast approaching the end of HockeyApp and this is the release we had scheduled this change for our app. Any update / help would be appreciated.

@winnie
Copy link

@winnie winnie commented Jul 5, 2019

@centrolutions we're working on it! Our plan is to release an SDK that supports crash reporting and analytics for WPF by the end of this month. I'll update this thread when we release. Thanks for your patience!

@jesusmogollon
Copy link

@jesusmogollon jesusmogollon commented Jul 12, 2019

Hi everyone, I'm trying the App Center, but I have been unable to see any logs on my App Center Analytics for my WPF application.
I added these packages:

Then added the following lines to my application OnStartup method:
AppCenter.Start("XXXXXXXXXXXXXXXXXX", typeof(Analytics));
AppCenter.LogLevel = LogLevel.Verbose;
Analytics.TrackEvent("SpectraLoK Started!");

Looking at the debug console I got:
[AppCenter] ASSERT: App Center SDK configured successfully.

I can see more lines where the data is successfully sent but still nothing on my Analytic page in App Center.

Is there something that I missing?
Maybe I should be using a newer package?
I have just created this application in App Center and selected the UWP as the platform, should I do something else?
What is the best place to discuss the implementation for WPF?

Thanks in advance.

@guperrot
Copy link
Member

@guperrot guperrot commented Jul 12, 2019

@jesusmogollon we do not currently support WPF but as mentioned in #620 (comment), it will soon be supported. This thread will be updated with the details once the release will be available.

The package you used was very old (and not official) and just a proof of concept. The real version will be 2.2.0-preview and will be the first version to actually support WPF, the changelog is already on the develop branch.

@jesusmogollon
Copy link

@jesusmogollon jesusmogollon commented Jul 12, 2019

@guperrot Thanks for reaching out so fast.
I will check the develop branch and see if I can compile it.
Please let me know the best way to provide feedback.

@guperrot
Copy link
Member

@guperrot guperrot commented Jul 12, 2019

Hi, please wait for the nuget release next week. After the release you can create new github issues or contact us via the feedback button on https://appcenter.ms to provide feedback.

@jrahma
Copy link

@jrahma jrahma commented Jul 21, 2019

Yeah we need it for WinForm too and it should work offline then update the AppCenter when user is connected to internet only.

@MatkovIvan
Copy link
Contributor

@MatkovIvan MatkovIvan commented Jul 22, 2019

Hi there!

AppCenter .NET SDK with WPF/WinForms support (2.2.1-preview) is released. We would appreciate it if you give us some feedback, so please check it out!

@james1301
Copy link

@james1301 james1301 commented Jul 22, 2019

@MatkovIvan how do we use this if you cannot select to add a WPF App to App Center? Or am I being dumb?

@rolikoff
Copy link

@rolikoff rolikoff commented Jul 22, 2019

I have the same question. There's no WPF or Winforms type of project available in appcenter backend.

@rolikoff
Copy link

@rolikoff rolikoff commented Jul 22, 2019

@james1301 Seems UWP type of project works well. I see analytics data there. But we definitely need a new type of project in appcenter (WPF/Winforms)

@james1301
Copy link

@james1301 james1301 commented Jul 22, 2019

Thanks @rolikoff, but at some point I presume I'll need to change this to a WPF one. So I'll need to change it in my application again?

@MatkovIvan
Copy link
Contributor

@MatkovIvan MatkovIvan commented Jul 22, 2019

@james1301, @rolikoff
Creating the apps for these platforms will be enabled on the portal soon.

@james1301
Copy link

@james1301 james1301 commented Jul 22, 2019

@MatkovIvan is there anything to follow for when that is done? Or how soon are you meaning? Like this week soon?

@winnie
Copy link

@winnie winnie commented Jul 22, 2019

Hi @james1301 - we're finishing up a few things on the UI and distribution side. If you would like to try out the SDK for diagnostics and analytics, please start a support ticket (blue chat bubble) with your e-mail and I can enable the feature flag for you. Thanks!

@james1301
Copy link

@james1301 james1301 commented Jul 22, 2019

Thanks @winnieli1208.

@StefanKoell
Copy link

@StefanKoell StefanKoell commented Jul 23, 2019

Thanks @winnieli1208 ! Jumped right in and wanted to get my hands dirty ;)

I successfully pulled the nuget packages and tried to replace my "custom/private" build - which already works.

Unfortunately I don't get any data into AppCenter. In the output I can see this:
Exception thrown: 'Microsoft.AppCenter.Ingestion.Http.HttpIngestionException' in Microsoft.AppCenter.dll
Exception thrown: 'Microsoft.AppCenter.Ingestion.Http.HttpIngestionException' in mscorlib.dll
2019-07-23 16:08:04.878 [AppCenter] WARN: Try #1 failed and will be retried in 5846 ms

I don't see any "retry" in the output and the data does not appear to get submitted.

Is this because the feature flag is not enabled or is something else going on?

@winnie
Copy link

@winnie winnie commented Jul 23, 2019

@StefanKoell I just enabled the feature flag for you so you should be able to create a WPF app in the UI and see if you get any data. Let me know if you run into any issues or have any feedback!

@StefanKoell
Copy link

@StefanKoell StefanKoell commented Jul 23, 2019

@winnieli1208 Thank you! I can now see data coming in with the preview package. I still see the HttpIngestionExceptions mentioned above. Not sure if this is something I have to worry about or if I can provide more data somehow to get to the bottom of this.

I will definitely keep an eye on the data...

@jrahma
Copy link

@jrahma jrahma commented Jul 23, 2019

@winnieli1208 can you please enable the feature for me too? Thanks.

@rolikoff
Copy link

@rolikoff rolikoff commented Jul 23, 2019

It worked well. I got crashes, got events, got crash attachments. Although, now the backend seems down, it gives 502/503 errors

2019-07-23 21:08:20.365 [AppCenter] VERBOSE: HTTP response status=502 (BadGateway) payload= ...
2019-07-23 21:09:44.113 [AppCenter] VERBOSE: HTTP response status=503 (ServiceUnavailable) ...

Pretty sure you guys already know about that, but wanted to give you a heads up.
I will send more feedback once it works again and we run some more tests.

@guperrot
Copy link
Member

@guperrot guperrot commented Jul 23, 2019

@rolikoff We had an incident yesterday on production that affected all incoming logs, not specific to WPF, that caused 502/503 errors, it should be resolved now (sorry for the troubles it caused). The time frame: 7/22 3.20PM PST to 7/23 11.20AM PST.

Please create new issues from now on for bugs or feature requests.
This thread should be kept open only to request the feature flag.

@guperrot
Copy link
Member

@guperrot guperrot commented Jul 23, 2019

@StefanKoell is it working now that the incident is resolved on our side? If you see a different issue please create a new github issue. Again sorry for the troubles that incident caused.

@StefanKoell
Copy link

@StefanKoell StefanKoell commented Jul 23, 2019

@guperrot I get these exceptions intermittently in my output during debug session and it's a bit hard to see if every event gets tracked. I guess it's working but I will keep an eye on the data and if I see issues I will log a new github issue for that. Thanks!

@JulianoFL
Copy link

@JulianoFL JulianoFL commented Jul 28, 2019

@winnieli1208, for some reason i can't see the chat icon in my account. Can you enable for me too ? Thanks !

@winnie
Copy link

@winnie winnie commented Jul 29, 2019

@JulianoFL done!

@WyoDoug
Copy link

@WyoDoug WyoDoug commented Aug 6, 2019

@winnieli1208, I'd like to get WPF enabled for two of my accounts, Can I get WPF enabled in App Center too? I have two account douglas(at)jackalopetechnologies.com and doug(at)ctwautomation.com where it would be most helpful.

@winnie
Copy link

@winnie winnie commented Aug 6, 2019

Hi all! We just globally enabled the feature flag. You should all be able to create an WPF/WinForms app and use our distirbution, diagnostics, and analytics services.

Please start a support ticket if you run into any issues and let us know what you'd like to see next by filing a feature request in the public App Center repo. Thanks!

@winnie winnie closed this Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet