What is the difference between a Shared Project vs. Class Library?

less than 1 minute read

Intro

I’ve noticed lots of questions from the developer community with the release of “Shared Projects” inside of Visual Studio 2015. In this video, I aim to clear up any confusion regarding “Shared Projects” vs. Class Libraries.

For those looking for a quick breakdown:

  • A class library is compiled and the unit of reuse is the assembly.

  • In a Shared Project, the unit of reuse is the source code and the shared code is incorporated into each assembly that references the shared project.

Another way of looking at this is, class libraries allow you to reuse C# code, whereas Shared Projects allow you to reuse C# code, XAML files, JavaScript files, etc.

I hope this clears things up and don’t forget to email me any question that you would like answered at michael@michaelcrump.net.

Direct Link

Leave a Comment