Join Walt Ritscher for an in-depth discussion in this video Create a class library, part of Visual Studio Essential Training: 07 Understanding Project Types.
- It is common nowadays to create separate DLLs…that contain shared logic for applications.…That way you can have a centralized assembly…that contains the compiled code,…yet is usable for multiple client applications.…In .NET you create a class library to hold the shared code.…When you compile a class library, it generates the DLL.…There are several class library templates…now available in Visual Studio.…I'll look at the first one here in the Visual C# section.…This class library is built for the standard .NET framework.…
This means that if you create a library in C#,…you can consume it in a Visual Basic and C++ application.…And the opposite is true.…Let's assume that I'm a Visual Basic developer,…I can go to the Visual Basic node,…and create my Class Library,…write my code in Visual Basic,…yet this code is callable from a C# application.…And the same is true for C++.…The template for C++ is here in this CLR section.…There are other Class Library templates…for mobile versions of .NET…and for the new Windows 10 Universal Windows Platform.…
Skill Level Beginner
Q: This course was updated on 08/21/2017. What changed?
A: New videos were added that cover the following Visual Studio 2017 topics: exploring an empty project template, using third-party project templates, creating a portable class library, and creating a mobile app with Xamarin.