I'd like to crearte an application that runs both on the desktop and on the internet. Is there a Visual Studio framework type that will do this?
Loading
I'd like to crearte an application that runs both on the desktop and on the internet. Is there a Visual Studio framework type that will do this?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishal JoshiPosted Oct 23, 2023, 5:52 AM
WCF (Windows Communication Foundation) and WPF (Windows Presentation Foundation) are two different technologies in the Microsoft .NET framework, and they are used for different purposes.
In conclusion, WCF is focused on building services for communication and data exchange between applications, while WPF is focused on creating Windows desktop applications with visually rich and interactive user interfaces. Both technologies are part of the .NET ecosystem and can be used together in scenarios where a desktop application needs to communicate with a remote service, such as fetching data from a WCF service and displaying it in a WPF application.
Aymen AmriPosted Oct 22, 2023, 9:28 PM
Hello
They are two total different things :
WCF is Windows communication Foundation, it offers you the possibility to create services and Api with some advantages like the adaptability to several protocols.
WPF is Windows Presentation Foundation and it's based on xaml. It specific for the UI of the desktop application. It's based generally on binding and it's commonly used in an MVVM architecture (Model View ViewModel).
for your purpose maybe you need to check this ?
https://learn.microsoft.com/en-us/aspnet/core/blazor/hybrid/?view=aspnetcore-7.0
Sam HobbsPosted Oct 22, 2023, 9:14 PM
Probably not entirely but perhaps Xamarin.
.NET MAUI applications can execute in Windows, macOS, iOS, and Android. It is expected to execute in Linux too but it does not yet.
You can develop .Net Class Libraries that can be shared among ASP.Net applications and other applications and then the majority of your code is just one source.
Muhammad Imran AnsariPosted Oct 22, 2023, 9:10 PM
WCF (Windows Communication Foundation) and WPF (Windows Presentation Foundation) are two distinct technologies in the .NET framework, each serving different purposes. For your requirement you can use Universal Windows Platform (UWP).
Yes, for creating applications that can run both on the desktop and on the internet, you can utilize the Universal Windows Platform (UWP) in Visual Studio. UWP allows you to build apps that run on any Windows 10 device, including desktops, tablets, phones, Xbox, and more.
UWP applications have the capability to adapt to different device form factors and can be distributed through the Microsoft Store. They can also utilize various Windows 10 features such as live tiles, notifications, and Cortana integration. Additionally, UWP supports a variety of programming languages, including C#, C++, Visual Basic, and JavaScript.
By building a UWP application, you can ensure that your app has a consistent and adaptive user interface across different Windows 10 devices, and you can target both desktop and online scenarios seamlessly.
To get started with UWP development in Visual Studio, you can select the "Universal Windows" development workload during the installation process. This will install all the necessary tools and templates for building UWP applications.