Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why create a class library (package)?

Tags:

c#

I've been creating class libraries for years and they have always met my needs.

Now when I went to create a class library, Visual Studio is promoting a new component called Class Library (Package). It's front and center, as if it's the default now. The regular Class Library is now buried and much harder to find.

I am biased toward familiar things that are tried and true, but I want to keep up with the times.

Are there any advantages to using Class Library (Package)?

I'm in a corporate environment under a non-disclosure agreement. Whatever I create I don't think it can be open source, if that matters.

like image 802
toddmo Avatar asked Jan 29 '16 16:01

toddmo


People also ask

What is the purpose of a class library?

A class library is a collection of books kept in the classroom and used for extensive reading, not generally for classroom activities. A classroom library can include readers, the teacher's own books, and books lent by learners.

What is a class library in Visual Studio?

A class library is a collection of class definitions contained in a . dll or .exe file. In order to use the class library, you must first add a reference to the library (see "How to add references to your Visual Studio Project").

What is a class library in C#?

. NET Framework Class Library is the collection of classes, namespaces, interfaces and value types that are used for . NET applications.


1 Answers

You can continue to use Class Libraries as you have however I'd recommend always staying current with the stack and platform. One way you could do that could be the ASP.NET Community Standup which is informative and fun. The new Class Library (Package) is part of vNext also known as ASP.NET Core 1.0

In short, taken from the description, it is:

A project template for creating a class library as a NuGet package that can target any platform.

I'd recommend these links for further reading.

Why create an ASP.NET 5 Class Library project?

Benefits of ASP.NET 5 Class Library projects (.kproj) over Class Library projects (.csproj)

like image 120
brk Avatar answered Sep 20 '22 13:09

brk