I'm using VS 2022 (Version 17.1.6) and have installed the ReAttach VSIX extension and have enabled the option Build before ReAttaching.
When I ReAttach using the extension my solution builds and then re-attaches to the last process which is what I expected it to do.
However if I make a change which stops the solution from successfully compiling the ReAttach extension runs the build as before but the build correctly fails but the ReAttach to the process still happens. I would have expected on a failed build that the ReAttach to process would not occur, highlighting an issue.