The new way

  1. We can now use a new project template that comes with Visual Studio 2015 to create class libraries as NuGet packages by choosing New Project | Visual C# or Web | Class library package.
  2. We create a new class that we will reuse in other projects:
  1. We create the code to be reused in the Message class:
  1. We have to right-click on the name of the project and select Properties. On the Build menu, let's check Produce outputs on build before building the project:
  1. Right-click on the name of the project and select Build. We can see the ...

Get ASP.NET Core MVC 2.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.