In 4.20, calling BuildPlugin on a plugin outside the \\Engine\Plugins\... folder whose .uplugin has the same filename as a plugin inside \\Engine\Plugins\... generates the following error:
It's finding the temporary duplicate of the .uplugin while it's being used in HostProject and stopping the build. In previous engine versions I don't believe any errors were thrown when a .uplugin existing in \\Engine\Plugins\... was found with the same name as the .uplugin you're calling BuildPlugin on somewhere else.
1. Ensure that the .uplugin of a plugin outside the \\Engine\Plugins\... folder has the same filename as a .uplugin inside the \\Engine\Plugins\... folder.
2. Call BuildPlugin on the .uplugin (the one outside the Engine folder), potentially with a .bat that looks something like:
CALL "C:\Program Files\Epic Games\UE_4.20\Engine\Build\BatchFiles\RunUAT.bat" BuildPlugin -Plugin=C:\PluginDir\PluginToBuild -Package=C:\PluginDir\BuiltPlugin -Rocket -targetplatforms=Win64
There's no existing public thread on this issue, so head over toAnswerHub just mention UE-64685 in the post.