In this tutorial, you create a simple utility library that contains a single string-handling method.
-->
A class library defines types and methods that are called by an application. If the library targets .NET Standard 2.0, it can be called by any .NET implementation (including .NET Framework) that supports .NET Standard 2.0. If the library targets .NET 5, it can be called by any application that targets .NET 5. This tutorial shows how to target .NET 5.
Download Visual Studio Code for macOS. Open the browser's download list and locate the downloaded archive. Select the 'magnifying glass' icon to open the archive in Finder. Drag Visual Studio Code.app to the Applications folder, making it available in the macOS Launchpad. Oracle Developer Tools for VS Code This extension enables editing and execution of SQL and PL/SQL for Oracle Database and Oracle Autonomous Database.
9l17ch mac os. When you create a class library, you can distribute it as a third-party component or as a bundled component with one or more applications.
Prerequisites
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 class library project named 'StringLibrary' to the solution.
Add a console app to the solutionVisual Studio
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.
Visual Studio Code Macos Command Line
Visual Studio Code Macos 10.13Run the app
Additional resources
Mac Os Vs CodeNext steps
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.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |