Creating a library that can perform several things at once
In this recipe, we will be looking at the basics of threading and we will make use of the System.Threading namespace inside a .NET Standard 2.0 library.
Getting ready
Let's make sure we have the latest Visual Studio 2017 installed and configured for creating a .NET Standard 2.0 library before we get started building our library.
How to do it...
- Open Visual Studio 2017.
- Click
File|New|Projectto create a project.
- In the
New Projectdialog box, expand theOther Project Typesnode in the left-hand pane and selectVisual Studio Solutions. In the right-hand pane, selectBlank Solution.
- In the
Name:textbox, typeChapter6.Threadsand, in theLocation:textbox, select a path from the drop-down box or click on theBrowse...button to locate a path:

- Click
OK. - Now, the
Solution Explorer(Ctrl + Alt + L) should look like this:

- Now, right-click on the
Chapter6.Threadslabel in theSolution Explorerand selectAdd|New Project. - In the
New Project...