All you need is stone and bare knuckle then you can do it like a caveman.
- Remove unused namespaces (for each class)
- Run Debug build
- Copy your executable and remaining namespace references to new location
- Run the executable
- Missing Reference DLL error will occur
- Copy required DLL from Debug folder
- Repeat 4-6
- Gu Gu Ga Ga?
- Throw your stone
You can also rely on your build tools to let you know which reference is still required. It's the era of VS 2017, caveman still survived.