The project was connected to the side of the assembly, I deleted them from the project's References, but with Rebuild, VS continues to put them in the folder with the compiled program.

Why?

    1 answer 1

    VISUAL STUDIO copies all dependent assemblies, including all dependencies of child assemblies. If you still doubt, make Clean before rebuilding or delete all folders in your project’s / bin directory.