This blog talks about how to change a created class library with a Console application in .net core. First, open a class library project in Visual Studio.

Step 1

Step 2

Step 3

The above-mentioned step is one way to handle this case. One more way is there to change a created class library with the Console application from the .csproj file.

.csproj

<PropertyGroup>
   <IncludeSymbols>true</IncludeSymbols>
   <SymbolPackageFormat>snupkg</SymbolPackageFormat>
   <OutputType>Exe</OutputType>
</PropertyGroup>