Project: UWP App (C#) - Introduction, creating a project (part 1)
Hello!
In this series of articles, I will introduce you to development of UWP, or Universal Windows Platform applications. This is also my first such article.
However, let me start by explaining what UWP is. It is an API created by Microsoft that allows programming of universal applications. These are compatible with Windows 10 and 11, Xbox One/Series, HoloLens and the no longer supported Windows Mobile. This eliminates the need to write and compile a program for each of these platforms separately. A UWP application can be written in Visual Basic or C#, and they also use XAML. I will, however, be using C#. The apps in the Microsoft Store are UWP apps.
[official infographic by Microsoft].
Configuration:
In order to create UWP applications you need the Visual Studio IDE. I am using Visual Studio Community 2019.
After installing Visual Studio, you need to open the Visual Studio Installer, select 'modify' next to the instance you are using, then select and install 'Software for Windows Universal Platform'. This will take up many GB, so be sure you have enough disk space.
After a successful installation, you can create a new project - a Blank Windows Universal Platform application:
In next screens that will appear, select the location of the project on your computer, the name of the project and solution, and the minimum Windows version.
Once you create the project, Visual Studio may need you to enable developer mode and change other system settings. The IDE will tell you what to do and even open the necessary settings itself.
This is how a newly created UWP application project looks like in the editor:
In the next post I will explain the project structure and show the editing. We will also create our first application.
Link to the project's GitHub: https://github.com/Wojtekb30/AplikacjaUWP1
See you in the next post!
- Wojtekb30
(12.12.2022)
Comments
Post a Comment