I\'m using Visual Studio 2015 update 3 with TFS hosted at visualstudio.com. When I add a C# class file to one of my projects in Visual Studio, it\'s not automatically added
The "lib" extension is the problem. Try renaming the project folder to something else, eg. "CoreLib".
To reproduce this behavior / bug, try the following:
The "lib" extension is used by binary files, and these are ignored by Team Explorer by default. I haven't found an official list of filetypes anywhere, but other affected file types are dll, exe, obj and possibly others. You can include these files manually by right-clicking them and selecting "Include".