In this recipe, we will be creating a Windows Presentation Foundation application to use the library. A basic user interface will be created to show the content.
Make sure you have opened the .NET Standard 2.0 class library we built in the previous recipe. If not, make sure you complete the previous recipe before we dive into this one.
- Open Visual Studio 2017.
- Now, open the solution from the previous recipe. Click
File
|Open
|Open Project/Solution
, or press Ctrl + Shift + O, and select theChapter6.AsyncTasks
solution. - Press Ctrl + Shift + B for a quick build to check that everything is fine.
- Click on the
Chapter6.AsyncTasks
solution label. ClickFile
|Add
|New Project
. - In the
Add New Project
template dialog box, expand theVisual C#
node in the left-hand pane. - Select
Windows Classic Desktop
and selectWPF App (.NET Framework)
in the right-hand pane:
- Now, in the
Name
:
textbox, typeChapter6.AsyncTasks.WPFSiteContent...