Skip to Content
.NET Standard 2.0 Cookbook
book

.NET Standard 2.0 Cookbook

by Fiqri Ismail
May 2018
Intermediate to advanced content levelIntermediate to advanced
394 pages
9h 51m
English
Packt Publishing
Content preview from .NET Standard 2.0 Cookbook

How it works...

In steps 1 to 9, we opened an existing solution. Then, we added a .NET Core console application to the solution. During these steps, we assigned a proper name to the project. In steps 10 to 13, we added the project reference to the library we created in the previous recipe. These steps will allow you to use the available methods from the library.

In steps 15 to 18, we added an XML file item to the project and then we populated it with some sample data. In step 21, we referenced our library from the .NET Core console application. In step 22, we added code inside the Main() method of the console application. The first line stores the path of our XML file. This might vary in your setup. In the next two lines, we created an instance ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# 7 and .NET Core 2.0 High Performance

C# 7 and .NET Core 2.0 High Performance

Ovais Mehboob Ahmed Khan
.NET Core 2.0 By Example

.NET Core 2.0 By Example

Neha Shrivastava, Rishabh Verma

Publisher Resources

ISBN: 9781788834667Supplemental Content