In this recipe, we will have a look at C# primitives and their usage in a .NET Standard 2.0 library. Primitives are one of the core parts of the framework. These types are defined in the .NET Framework itself and not in the C# language specification.
We will be building a .NET Standard 2.0 library that uses primitives in the .NET Framework and use it in the next recipe.
As mentioned, primitive data types are defined under .NET Framework itself and it's not language specific. It means you can use these data types across all languages supported under .NET Framework. It doesn't mean you can use these primitives under different flavors of .NET Framework. For example, if a data type is defined under .NET Framework version 4.6.1, and it's not defined under .NET Core 2.0, your code will fail under .NET Core 2.0.
Also, make sure you have the latest version of Visual Studio, which is 2017 at the time of writing.