We are developing a Windows Presentation Foundation Application that we would like to be able run as a Windows Service.
Anyone done something like that?
Is it possible?
We don't need to interact with the Desktop or any GUI, it would just be nice to have one App that we can run with a GUI, from the Command Line (that works) or as a Service.
Looking forward to interesting input :-)
Now we have two app startup entries - one for WPF and one for Windows Service. We can configure the startup object in Visual Studio by right-clicking on your project and selecting Properties -> Application -> Startup object . Setting the entry and rebuilding will get you what you want.
WPF is still one of the most used app frameworks in use on Windows (right behind WinForms).
It was in 2006 that Windows Presentation Foundation (WPF) was released with . NET framework 3.0. Over the years it got improved and it is still now in the market in 2021.
WPF Browser applications (or XAML Browser applications, or XBAP) are a specific kind of application that are compiled into . xbap extensions and can be run in Internet Explorer.
We actually worked it out and wrote a little post about it:
http://remy.supertext.ch/2011/11/a-wpf-project-running-from-the-cmd-prompt-or-as-a-service-and-has-a-gui/
Maybe it helps someone.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With