Revert "build: improve build script to remove TestAssemblies items."

This reverts commit a9ae413fad4d5966f51cd285bbceeaaa34358d64.
Merge branch 'fix-build-error'