How was the class library project added to the solution? Have you added reference from the main CMSApp project to this custom class library? Also, you can try adding the AssemblyDiscoverable assembly attribute into the project's AssemblyInfo.cs file:
using CMS;
[assembly:AssemblyDiscoverable]