Exploring the Desktop project structure
In this section, we are going to examine the files in the WebViewBrowser desktop project that was generated by the Visual Studio template. Exploring the differences between this project and our earlier WinUI projects will help you understand how the desktop app executes. When Visual Studio first loads the new solution, it displays some information about the packaging project:
We will explore the packaging project in the next section. Let's start by looking at some of the properties of the WebViewBrowser project. Right-click the project and select Properties. On the Application tab of the properties, you can see that the Target framework is .NET 5.0 and the Output type is Windows Application. You would see these same values in a new WPF project's properties.
Now let's open the App.xaml
file. This looks the same as the App.xaml
files in our...