I’ve got a dll, into which I’ve inserted txt files into the names subdirectory

When I build the solution, VS does not create the directory and does not copy the files themselves into the directory of the exe file, which references the dll library
Is there an easy way to make it do that?
It should do that, provided that you have a reference for the class library project in your executable project. I just setup a scenario like this in Visual Studio 2010:
Maybe you are missing a project reference to your class library in your exe?