In this tutorial, you create a simple utility library that contains a single string-handling method. You implement it as an extension method so that you can call it as if it were a member of the String class.
-->
A class library defines types and methods that are called by an application. A class library that targets .NET Standard 2.0 allows your library to be called by any .NET implementation that supports that version of .NET Standard. When you finish your class library, you can distribute it as a third-party component or as a bundled component with one or more applications.
Prerequisites
Aug 15, 2012 One of the tools that Apple included with Lion and Mountain Lion is the command-line tool pkgbuild. This tool was designed to work by itself or in conjunction with another tool, productbuild, to build Apple installer packages. Pkgbuild has a number of options associated with it (see the man page for details on the available.
Create a solution
Start by creating a blank solution to put the class library project in. A solution serves as a container for one or more projects. You'll add additional, related projects to the same solution.
Create a class library project
Add a new .NET Standard class library project named 'StringLibrary' to the solution.
Add a console app to the solution
Add a console application that uses the class library. The app will prompt the user to enter a string and report whether the string begins with an uppercase character.
Add a project reference![]()
Initially, the new console app project doesn't have access to the class library. To allow it to call methods in the class library, create a project reference to the class library project.
Run the app
Additional resources
Next stepsCreating Terminal For Macos Tutorial Windows 10
In this tutorial, you created a solution, added a library project, and added a console app project that uses the library. In the next tutorial, you add a unit test project to the solution.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |