When I compile the library, all the settings in Settings.Settings are integrated into the DLL. how do I prevent this?
Don't have any settings listed in Settings.Settings. If you don't want them being shipped out in the dll, then don't have them. If you have them, then you must need them for something, in which case it makes no sense not to include them.